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

Disassembly:
sub esp, 0x1a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b0]
push edi
cmp dword [esi + 0x58], 2
jl 0x4ac7eb
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
jne 0x4ac584
pop edi
pop esi
pop ebp
mov eax, 0xffffff76
pop ebx
add esp, 0x1a0
ret
mov edi, dword [esp + 0x1b8]
cmp edi, ebp
jl 0x4ac7eb
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov ebx, dword [ecx + eax*8 + 4]
lea ecx, [ecx + eax*8]
mov eax, edi
cdq
cmp edx, ebx
jg 0x4ac7eb
jl 0x4ac5b5
cmp eax, dword [ecx]
ja 0x4ac7eb
or eax, 0xffffffff
push esi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
call fcn.004ac800
push edi
push esi
call fcn.004ac120
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov ecx, 0x5a
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x58]
mov edi, 3
cmp eax, edi
jne 0x4ac678
lea edx, [esp + 0x28]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.004aef50
add esp, 8
test eax, eax
jle 0x4ac678
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x48]
shl ecx, 5
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx + 0x1c]
test ecx, ecx
je 0x4ac62f
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.004b0560
add esp, 8
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x4ac643
lea edx, [esi + 0x78]
push 0
push edx
call fcn.004aef50
add esp, 8
jmp 0x4ac65a
test ebp, ebp
je 0x4ac65a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, ebp
sar eax, 2
add ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov edx, ecx
and edx, edi
cmp edx, 0xffffffff
jne 0x4ac75f
mov ebp, dword [esp + 0x14]
jmp 0x4ac5e3
test ebp, ebp
jne 0x4ac7c8
lea eax, [esp + 0x18]
push 0xffffffffffffffff
push eax
push esi
call fcn.004abe00
add esp, 0xc
test eax, eax
jl 0x4ac789
cmp dword [esi + 0x58], edi
jne 0x4ac6c7
lea ecx, [esp + 0x18]
push ecx
call fcn.004ae760
mov ecx, dword [esi + 0x5c]
add esp, 4
cmp ecx, eax
je 0x4ac6c4
push esi
call fcn.004ac800
lea edx, [esp + 0x4c]
push edx
call fcn.004ae830
add esp, 8
cmp dword [esi + 0x58], edi
jge 0x4ac72e
lea eax, [esp + 0x18]
push eax
call fcn.004ae760
mov edx, dword [esi + 0x34]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x5c], eax
test edx, edx
jle 0x4ac6f1
mov edi, dword [esi + 0x40]
cmp dword [edi], eax
je 0x4ac6f1
inc ecx
add edi, 4
cmp ecx, edx
jl 0x4ac6e5
cmp ecx, edx
je 0x4ac79c
lea edi, [esi + 0x78]
push eax
push edi
mov dword [esi + 0x60], ecx
call fcn.004ae7c0
push edi
call fcn.004aef00
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.004ae7c0
lea eax, [esp + 0x5c]
push eax
call fcn.004aef00
add esp, 0x18
mov dword [esi + 0x58], 3
lea ecx, [esp + 0x18]
lea edx, [esi + 0x78]
push ecx
push edx
call fcn.004aebf0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.004aebf0
lea edx, [esp + 0x28]
push edx
call fcn.004ae670
add esp, 0x14
mov ebx, eax
jmp 0x4ac5e3
mov edx, dword [esi + 0x60]
test edx, edx
jle 0x4ac778
mov eax, dword [esi + 0x44]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
add ecx, ebx
adc edi, ebp
add eax, 8
dec edx
jne 0x4ac769
mov eax, dword [esp + 0x10]
cdq
sub ecx, eax
sbb edi, edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edi
jmp 0x4ac7d1
push 0xffffffffffffffff
push esi
call fcn.004ac450
mov dword [esi + 0x50], eax
add esp, 8
mov dword [esi + 0x54], edx
jmp 0x4ac7d1
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea eax, [esp + 0x48]
push eax
call fcn.004ae830
push esi
call fcn.004ac800
add esp, 8
mov eax, 0xffffff77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004ae830
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff7d
pop ebx
add esp, 0x1a0
ret