Function at 0x53ac040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
push edi
test ebx, ebx
jne 0x53ac085
mov ebx, esi
call fcn.053823b0
mov ebx, eax
mov dword [esi + 8], eax
test ebx, ebx
je 0x53ac070
push 0x9a
call fcn.0539ef60
add esp, 4
cmp dword [esi + 0x19c], 0
jne 0x53ac085
mov eax, dword [esi]
test byte [eax + 0x3c], 8
jne 0x53ac085
mov byte [esi + 0x19], 1
mov esi, dword [esi + 0x48]
dec esi
mov eax, ebx
mov dword [ebp - 0xc], esi
call fcn.0539c360
cmp dword [ebp + 0x24], 0
mov dword [ebp - 8], eax
jge 0x53ac0dd
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp + 0x18]
movzx edi, byte [ecx + 0x18]
cmp dword [edx + 0x58], esi
jg 0x53ac0b7
call fcn.0539b0d0
test eax, eax
jne 0x53ac0dd
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x82
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x14], 0
mov dword [ebp - 4], 0
jle 0x53ac149
lea ecx, [ecx]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*4]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp + 0x20]
lea edi, [eax + ecx + 1]
cmp dword [edx + 0x58], esi
jg 0x53ac114
call fcn.0539b0d0
test eax, eax
jne 0x53ac13a
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x4c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ecx + 0x14]
jl 0x53ac0f0
cmp dword [ebp + 0x28], 0
jne 0x53ac614
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x53ac349
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x13]
test al, al
jne 0x53ac170
inc dword [ecx + 0x4c]
mov edi, dword [ecx + 0x4c]
jmp 0x53ac17c
dec al
movzx edx, al
mov byte [ecx + 0x13], al
mov edi, dword [ecx + edx*4 + 0x1c]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebx + 0x20]
lea eax, [ecx + edx + 1]
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0x28], eax
cmp dword [ecx + 0x58], esi
jg 0x53ac19f
call fcn.0539b0d0
test eax, eax
jne 0x53ac1c5
mov eax, dword [ebx + 4]
inc dword [ebx + 0x20]
mov ecx, dword [ebp + 0x28]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x22
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x58], esi
jg 0x53ac1e2
call fcn.0539b0d0
test eax, eax
je 0x53ac1e2
mov dword [ebp + 0x28], 1
jmp 0x53ac207
mov edx, dword [ebx + 4]
xor ecx, ecx
inc dword [ebx + 0x20]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov byte [eax + 3], cl
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x26
mov dword [ebp + 0x28], esi
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
cmp esi, dword [eax]
jne 0x53ac23e
cmp dword [ebp + 0x24], 1
jne 0x53ac23e
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x20]
push edi
push ecx
push edx
push 0x4f
mov eax, ebx
call fcn.0539c3d0
mov eax, dword [ebx + 4]
add esp, 0x10
test eax, eax
je 0x53ac23e
mov ecx, dword [ebx + 0x20]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x88
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push 0x34
push edx
push eax
push ecx
mov eax, esi
call fcn.053abf20
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
add esp, 0x10
cmp dword [edx + 0x58], esi
jg 0x53ac26a
call fcn.0539b0d0
test eax, eax
jne 0x53ac290
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x20]
mov edx, dword [ebp - 0xc]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ecx
mov word [eax], 0x43
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x58], esi
jg 0x53ac2a4
call fcn.0539b0d0
test eax, eax
jne 0x53ac2c9
mov eax, dword [ebx + 4]
xor ecx, ecx
inc dword [ebx + 0x20]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 8]
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x10
mov eax, dword [ebx + 0x20]
lea ecx, [eax - 2]
cmp eax, ecx
jbe 0x53ac2dd
mov edx, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
dec eax
mov dword [ecx + 0x5c], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp + 0x28]
cmp eax, ecx
jbe 0x53ac2fb
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
dec edx
mov dword [eax + 0x5c], edx
test edi, edi
je 0x53ac614
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x13]
cmp dl, 8
jae 0x53ac614
mov esi, ecx
xor eax, eax
lea ecx, [esi + 0x78]
cmp dword [ecx + 0xc], edi
je 0x53ac340
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x53ac323
movzx edx, dl
mov dword [esi + edx*4 + 0x1c], edi
inc byte [esi + 0x13]
jmp 0x53ac614
mov byte [ecx + 6], 1
jmp 0x53ac614
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov esi, dword [eax + 0x40]
mov dword [ebp + 0x28], edx
mov dword [ebp - 0x10], esi
cmp edx, ecx
jg 0x53ac36e
add esi, edx
sub ecx, edx
mov dword [eax + 0x40], esi
mov dword [eax + 0x3c], ecx
jmp 0x53ac37c
mov ecx, dword [eax + 0x4c]
lea esi, [ecx + 1]
add ecx, edx
mov dword [ebp - 0x10], esi
mov dword [eax + 0x4c], ecx
mov cl, byte [eax + 0x13]
test cl, cl
jne 0x53ac38e
inc dword [eax + 0x4c]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x14], ecx
jmp 0x53ac39d
dec cl
movzx edx, cl
mov byte [eax + 0x13], cl
mov eax, dword [eax + edx*4 + 0x1c]
mov dword [ebp - 0x14], eax
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
mov edi, dword [edi + 0x2c]
cmp dword [ecx + 0x58], esi
jg 0x53ac3b4
call fcn.0539b0d0
test eax, eax
jne 0x53ac3df
mov eax, dword [ebx + 4]
inc dword [ebx + 0x20]
mov ecx, dword [ebp - 0xc]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0xc]
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov word [eax], 0x34
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.053aa660
xor edi, edi
cmp dword [ebp + 0x28], edi
jle 0x53ac446
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + edi*4]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebx + 0x20]
lea eax, [ecx + edx + 1]
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 4], eax
cmp dword [ecx + 0x58], esi
jg 0x53ac415
call fcn.0539b0d0
test eax, eax
jne 0x53ac440
mov eax, dword [ebx + 4]
inc dword [ebx + 0x20]
mov ecx, dword [ebp - 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x10]
add edx, edi
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x21
inc edi
cmp edi, dword [ebp + 0x28]
jl 0x53ac3f1
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax]
jne 0x53ac549
cmp dword [ebp + 0x24], 1
jne 0x53ac549
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebx + 0x20]
lea eax, [ecx + edx + 1]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
jle 0x53ac510
jmp 0x53ac483
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebp + 0x20]
lea edx, [edx + ecx + 1]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 4]
movzx eax, word [edx + eax*2]
movsx edx, ax
lea edi, [edx + ecx + 1]
mov edx, dword [ebp + 0x10]
cmp ax, word [edx + 0x24]
jne 0x53ac4af
mov edi, ecx
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x58], esi
jg 0x53ac4c3
call fcn.0539b0d0
test eax, eax
jne 0x53ac4ee
mov edx, dword [ebx + 4]
inc dword [ebx + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov word [eax], 0x4e
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53ac500
mov eax, dword [ebx + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0x28]
jl 0x53ac480
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x58], esi
jg 0x53ac524
call fcn.0539b0d0
test eax, eax
jne 0x53ac549
mov eax, dword [ebx + 4]
xor ecx, ecx
inc dword [ebx + 0x20]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 8]
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x10
mov esi, dword [ebp + 0x14]
mov eax, ebx
call fcn.053819a0
mov esi, dword [ebx + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x58], esi
jg 0x53ac574
call fcn.0539b0d0
test eax, eax
je 0x53ac574
mov edi, dword [ebp - 0x14]
mov eax, 1
jmp 0x53ac5a4
mov edx, dword [ebx + 4]
inc dword [ebx + 0x20]
mov edi, dword [ebp - 0x14]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x28]
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov word [eax], 0x30
mov eax, esi
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0x28]
push ebx
call fcn.0538dce0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push 0
push edi
push edx
push eax
push 0x42
mov eax, ebx
call fcn.0539ec90
add esp, 0x1c
test edi, edi
je 0x53ac5f8
mov esi, dword [ebp + 8]
mov dl, byte [esi + 0x13]
cmp dl, 8
jae 0x53ac5f8
xor eax, eax
lea ecx, [esi + 0x78]
lea esp, [esp]
cmp dword [ecx + 0xc], edi
je 0x53ac651
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x53ac5e0
movzx ecx, dl
mov dword [esi + ecx*4 + 0x1c], edi
inc byte [esi + 0x13]
mov ecx, dword [ebp + 0x28]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.05375db0
mov ecx, dword [ebp + 0x28]
cmp ecx, dword [eax + 0x3c]
jle 0x53ac614
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], edi
mov edx, dword [ebp + 0x18]
mov cl, byte [edx + 0x18]
mov eax, dword [ebp + 8]
test cl, cl
jne 0x53ac657
mov esi, dword [eax]
test dword [esi + 0x18], 0x1000000
jne 0x53ac657
cmp dword [eax + 0x19c], 0
jne 0x53ac657
cmp byte [eax + 0x16], cl
jne 0x53ac657
push 4
push 0xfffffffffffffffe
push 0
push 2
push 0x313
call fcn.053a1690
add esp, 0x14
jmp 0x53ac6af
mov byte [ecx + 6], 1
jmp 0x53ac5f8
cmp dword [ebp + 0x24], 0
jle 0x53ac671
test cl, cl
jne 0x53ac671
mov ecx, dword [eax + 0x19c]
test ecx, ecx
je 0x53ac66d
mov eax, ecx
mov byte [eax + 0x17], 1
movzx edi, byte [edx + 0x18]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x58], esi
jg 0x53ac689
call fcn.0539b0d0
test eax, eax
jne 0x53ac6af
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x20]
mov edx, dword [ebp + 0x24]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x81
mov ecx, dword [ebx + 0x18]
or eax, 0xffffffff
sub eax, dword [ebp - 8]
js 0x53ac6c7
mov edx, dword [ecx + 0x74]
test edx, edx
je 0x53ac6c7
mov esi, dword [ebx + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [ebx + 0x20]
dec eax
mov dword [ecx + 0x5c], eax
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x58], esi
jg 0x53ac6e2
call fcn.0539b0d0
test eax, eax
jne 0x53ac707
mov eax, dword [ebx + 4]
xor ecx, ecx
inc dword [ebx + 0x20]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0xc]
mov byte [eax + 3], cl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x3a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret