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

Disassembly:
sub esp, 0x1c
xor eax, eax
push edi
mov edi, dword [esp + 0x24]
cmp edi, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
jne 0x4ac3e0
mov eax, 0xffffff9a
pop edi
add esp, 0x1c
ret
cmp dword [edi + 0x38], eax
je 0x4ac3d6
cmp dword [edi + 0x9c], 8
push ebx
push ebp
push esi
mov dword [edi + 0x44], eax
jne 0x4ac448
cmp dword [edi + 0xa0], eax
jne 0x4ac448
lea ebx, [edi + 0x40]
mov ebp, 0x10000
cmp dword [edi + 0x50], 0
jne 0x4ac41d
mov esi, edi
call fcn.004ac1b0
lea eax, [edi + 0xa4]
mov dword [edi + 0x50], ebp
mov dword [edi + 0x4c], eax
mov esi, dword [edi + 0x54]
push 4
push ebx
call fcn.004b0d70
mov ecx, dword [edi + 0x54]
sub ecx, esi
add dword [edi + 0x7c], ecx
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x4ac404
cmp eax, 1
jne 0x4ac448
mov dword [esp + 0x10], 0
or ebx, 0xffffffff
cmp dword [edi + 0x7c], 0
jbe 0x4ac467
cmp dword [esp + 0x10], 0
jne 0x4ac467
mov esi, edi
call fcn.004ac1b0
cmp eax, ebx
jne 0x4ac467
mov dword [esp + 0x10], ebx
cmp dword [edi + 0x9c], 8
jne 0x4ac497
cmp dword [edi + 0xa0], 0
jne 0x4ac4c0
lea edx, [edi + 0x40]
push edx
call fcn.004afaa0
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x4ac490
mov dword [esp + 0x10], eax
mov dword [edi + 0x78], 0
cmp dword [edi + 0xa0], 0
jne 0x4ac4c0
mov eax, dword [edi + 0x100a8]
mov ecx, dword [edi + 0x100c8]
mov ebp, dword [edi + 0x100cc]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebp
jmp 0x4ac4c4
mov ebp, dword [esp + 0x38]
mov eax, dword [edi + 0x100e0]
cdq
add eax, dword [edi + 0x100c0]
adc edx, dword [edi + 0x100c4]
mov dword [esp + 0x1c], eax
test edx, edx
mov dword [esp + 0x20], edx
ja 0x4ac506
jb 0x4ac4e9
cmp eax, ebx
jae 0x4ac506
test ebp, ebp
ja 0x4ac506
jb 0x4ac4f5
cmp dword [esp + 0x34], ebx
jae 0x4ac506
cmp dword [edi + 0x84], 0
ja 0x4ac506
cmp dword [edi + 0x80], ebx
jb 0x4ac530
mov eax, dword [edi + 0x88]
add eax, 4
mov byte [eax], 0x2d
mov byte [eax + 1], 0
mov eax, dword [edi + 0x88]
add eax, 6
mov byte [eax], 0x2d
mov byte [eax + 1], 0
jmp 0x4ac530
mov eax, dword [edi + 0x88]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
add eax, 0x10
mov byte [eax], dl
shrd edx, ecx, 8
mov dword [esp + 0x28], ecx
shr ecx, 8
mov byte [eax + 1], dl
shrd edx, ecx, 8
shr ecx, 8
mov byte [eax + 2], dl
shrd edx, ecx, 8
shr ecx, 8
mov byte [eax + 3], dl
shrd edx, ecx, 8
shr ecx, 8
or edx, ecx
je 0x4ac574
mov dword [eax], 0xffffffff
mov esi, dword [esp + 0x20]
test esi, esi
mov cl, 0xff
ja 0x4ac587
mov edx, dword [esp + 0x1c]
cmp edx, 0xffffffff
jb 0x4ac59d
mov eax, dword [edi + 0x88]
add eax, 0x14
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [eax + 2], cl
mov byte [eax + 3], cl
jmp 0x4ac5db
mov ecx, dword [edi + 0x88]
add ecx, 0x14
mov byte [ecx], dl
mov eax, esi
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4ac5d9
mov dword [ecx], 0xffffffff
mov cl, 0xff
cmp dword [edi + 0x6c], 1
jne 0x4ac5f1
mov eax, dword [edi + 0x88]
add eax, 0x24
mov byte [eax], 1
mov byte [eax + 1], 0
test ebp, ebp
ja 0x4ac5fe
mov edx, dword [esp + 0x34]
cmp edx, 0xffffffff
jb 0x4ac614
mov eax, dword [edi + 0x88]
add eax, 0x18
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [eax + 2], cl
mov byte [eax + 3], cl
jmp 0x4ac650
mov ecx, dword [edi + 0x88]
add ecx, 0x18
mov byte [ecx], dl
mov eax, ebp
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4ac650
mov dword [ecx], 0xffffffff
or ecx, 0xffffffff
test ebp, ebp
ja 0x4ac65d
cmp dword [esp + 0x34], ecx
jb 0x4ac664
mov eax, 8
jmp 0x4ac668
mov eax, dword [esp + 0x14]
test esi, esi
ja 0x4ac672
cmp dword [esp + 0x1c], ecx
jb 0x4ac675
add eax, 8
cmp dword [edi + 0x84], 0
ja 0x4ac686
cmp dword [edi + 0x80], ecx
jb 0x4ac689
add eax, 8
test ax, ax
jle 0x4ac880
movsx esi, ax
lea edx, [esi + 4]
cmp edx, dword [edi + 0x94]
jbe 0x4ac6ad
pop esi
pop ebp
pop ebx
mov eax, 0xffffff99
pop edi
add esp, 0x1c
ret
mov ecx, dword [edi + 0x90]
add ecx, dword [edi + 0x88]
mov eax, esi
cdq
mov byte [ecx], 1
mov byte [ecx + 1], 0
add ecx, 2
mov byte [ecx], al
shrd eax, edx, 8
shr edx, 8
mov byte [ecx + 1], al
shrd eax, edx, 8
shr edx, 8
or eax, edx
je 0x4ac6e2
mov word [ecx], 0xffff
mov edx, dword [esp + 0x34]
add ecx, 2
test ebp, ebp
ja 0x4ac6f2
cmp edx, 0xffffffff
jb 0x4ac752
mov byte [ecx], dl
mov eax, ebp
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 4], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 5], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 6], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 7], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4ac74f
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
add ecx, 8
cmp dword [esp + 0x20], 0
mov edx, dword [esp + 0x1c]
ja 0x4ac762
cmp edx, 0xffffffff
jb 0x4ac7c4
mov eax, dword [esp + 0x20]
mov byte [ecx], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 4], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 5], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 6], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 7], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4ac7c1
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
add ecx, 8
mov eax, dword [edi + 0x84]
test eax, eax
mov edx, dword [edi + 0x80]
ja 0x4ac7d9
cmp edx, 0xffffffff
jb 0x4ac834
mov byte [ecx], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 4], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 5], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 6], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 7], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4ac834
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, 0xfffffffc
sub eax, esi
add dword [edi + 0x94], eax
mov eax, dword [edi + 0x88]
lea ecx, [esi + 4]
add dword [edi + 0x90], ecx
add esi, 4
add dword [edi + 0x8c], esi
mov edx, dword [edi + 0x8c]
xor ecx, ecx
add eax, 0x1e
mov byte [eax], dl
shrd edx, ecx, 8
shr ecx, 8
mov byte [eax + 1], dl
shrd edx, ecx, 8
shr ecx, 8
or edx, ecx
je 0x4ac880
mov word [eax], 0xffff
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4ac8a8
mov edx, dword [edi + 0x90]
mov eax, dword [edi + 0x88]
push edx
push eax
lea ecx, [edi + 0x30]
push ecx
call fcn.004aae10
mov esi, eax
add esp, 0xc
mov dword [esp + 0x10], esi
mov edx, dword [edi + 0x88]
push edx
call fcn.0045e420
add esp, 4
test esi, esi
jne 0x4ac9fc
mov eax, dword [edi + 0x2c]
push eax
push edi
call fcn.004adc10
mov ecx, dword [edi + 0x80]
mov dword [esp + 0x20], edx
mov edx, dword [edi + 0x84]
add ecx, 0xe
push esi
adc edx, esi
push edx
mov ebp, eax
mov eax, dword [edi + 0x2c]
push ecx
push eax
push edi
call fcn.004adbb0
add esp, 0x1c
test eax, eax
je 0x4ac8fe
mov dword [esp + 0x10], 0xffffffff
jmp 0x4ac91c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov ebx, dword [edi + 0x2c]
push ecx
push edx
mov esi, 4
call fcn.004aaef0
add esp, 8
mov dword [esp + 0x10], eax
cmp dword [esp + 0x38], 0
ja 0x4ac92a
cmp dword [esp + 0x34], 0xffffffff
jb 0x4ac99c
mov eax, dword [edi + 0x100bc]
test eax, eax
mov ecx, dword [edi + 0x100b8]
ja 0x4ac942
test ecx, ecx
jbe 0x4ac9de
add ecx, 4
push 0
adc eax, 0
push eax
mov eax, dword [edi + 0x2c]
push ecx
push eax
push edi
call fcn.004adbb0
add esp, 0x14
test eax, eax
je 0x4ac967
mov dword [esp + 0x10], 0xffffffff
jmp 0x4ac9de
cmp dword [esp + 0x10], 0
jne 0x4ac9de
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebx, dword [edi + 0x2c]
push ecx
push edx
mov esi, 8
call fcn.004aaef0
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4ac9de
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
jmp 0x4ac9cf
cmp dword [esp + 0x10], 0
jne 0x4ac9de
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ebx, dword [edi + 0x2c]
push edx
push eax
mov esi, 4
call fcn.004aaef0
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4ac9de
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ebx, dword [edi + 0x2c]
call fcn.004aaef0
mov dword [esp + 0x18], eax
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x2c]
push 0
push eax
push ebp
push ecx
push edi
call fcn.004adbb0
add esp, 0x14
test eax, eax
je 0x4ac9fc
or eax, 0xffffffff
jmp 0x4aca00
mov eax, dword [esp + 0x10]
add dword [edi + 0x100f8], 1
pop esi
pop ebp
adc dword [edi + 0x100fc], 0
pop ebx
mov dword [edi + 0x38], 0
pop edi
add esp, 0x1c
ret