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

Disassembly:
sub esp, 0x12c
mov eax, dword [0x5923b4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x144]
xorps xmm0, xmm0
mov ecx, dword [0x59c53c]
mov ebx, dword [esp + 0x14c]
mov ebp, dword [eax + 8]
xor ebp, dword [eax + 4]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x140]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x3d], 0
mov byte [esp + 0x41], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x35], 0
mov byte [esp + 0x39], 0
mov byte [esp + 0x68], 0
movq qword [esp + 0x69], xmm0
mov byte [esp + 0x5c], 0
movq qword [esp + 0x5d], xmm0
mov byte [esp + 0x50], 0
movq qword [esp + 0x51], xmm0
mov byte [esp + 0x44], 0
movq qword [esp + 0x45], xmm0
mov eax, dword [ecx + 0x1b0]
mov edi, dword [esp + 0x148]
mov dword [esp + 0x20], edi
mov eax, dword [eax + 0x1cb8]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x14c8]
add eax, 0x4fc
push eax
push ecx
call fcn.004e0db0
push edi
call fcn.005414c0
add esp, 0xc
push 6
cmp eax, 1
jne 0x4ac355
lea eax, [ebx + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004cfc90
push 6
lea eax, [ebx + 0x1a]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cfc90
push 0
push 8
lea eax, [ebx + 0x29]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00414a10
push 0
push 8
lea eax, [ebx + 0x32]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00414a10
push 0
push 8
lea eax, [ebx + 0x3b]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00414a10
lea eax, [ebx + 0x44]
jmp 0x4ac3b5
lea eax, [esi + 2]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004cfc90
push 6
lea eax, [esi + 0x31]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cfc90
push 0
push 8
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00414a10
push 0
push 8
lea eax, [esi + 0x16]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00414a10
push 0
push 8
lea eax, [esi + 0x1f]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00414a10
lea eax, [esi + 0x28]
add esp, 0x48
push 0
push 8
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00414a10
add esp, 0x10
mov dword [esp + 0x28], 0
lea eax, [esp + 0xa4]
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
push 0
push 0x94
push 0
push eax
call fcn.00414af0
mov edx, dword [0x59c53c]
add esp, 0x10
mov eax, dword [edx + 0x1b0]
mov ecx, dword [eax + 0x1cb8]
mov eax, dword [ecx + 0x554]
test eax, eax
je 0x4ac429
cmp word [edi + 0x147e], 7
jb 0x4ac433
mov eax, dword [ecx + 0x53c]
test eax, eax
je 0x4ac440
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4ac467
jmp 0x4ac4de
cmp byte [esp + 0x34], 0x32
jne 0x4ac4de
mov eax, dword [edi + 0x14c8]
test eax, eax
je 0x4ac4de
mov eax, dword [eax + 0x54c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4ac4de
mov edi, dword [esp + 0x14]
xor ebx, ebx
xor esi, esi
nop
mov eax, ebp
mov ecx, esi
sar eax, cl
mov byte [esp + 0x13], al
test edi, edi
je 0x4ac4a3
mov eax, dword [edx + 0x1b0]
mov eax, dword [eax + 0x1cb8]
cmp dword [eax + 0x53c], 0
je 0x4ac4a3
push 0
push ebx
lea eax, [esp + 0x1b]
push eax
push edx
call edi
add esp, 0x10
jmp 0x4ac4c0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ac4c6
push 0
push 0
push ebx
lea ecx, [esp + 0x1f]
push ecx
push 1
push 0
push 0
call eax
add esp, 0x1c
mov edx, dword [0x59c53c]
movzx eax, byte [esp + 0x13]
mov ecx, esi
shl eax, cl
add esi, 8
xor ebp, eax
inc ebx
cmp esi, 0x20
jl 0x4ac470
mov edi, dword [esp + 0x20]
cmp word [edi + 0x147e], 7
jb 0x4ac4fe
lea eax, [edi + 0x14bc]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004d13f0
add esp, 8
jmp 0x4ac508
mov dword [edi + 0x14bc], 0xffffffff
lea eax, [esp + 0x8c]
push eax
push edi
push ebp
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004ac120
movzx eax, word [edi + 0x147e]
add esp, 0x14
imul esi, eax, 0x64
movzx eax, word [edi + 0x1480]
add esi, eax
cmp esi, 0x23f
jle 0x4ac58a
lea eax, [esp + 0x74]
push eax
push edi
push ebp
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004ac120
lea eax, [esp + 0xac]
push eax
push edi
push ebp
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004ac120
lea eax, [esp + 0xa8]
push eax
push edi
push ebp
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004ac120
add esp, 0x3c
mov byte [esp + 0xa6], 0x31
cmp esi, 0x23f
jle 0x4ac646
movzx ecx, word [edi + 0x147e]
xor eax, eax
push 0
cmp ecx, 5
push 8
setge al
push eax
push ebp
lea eax, [esp + 0x84]
push 8
push eax
call fcn.005088d0
add esp, 0x10
push eax
lea eax, [esp + 0xc6]
push eax
call fcn.00414a10
movzx ecx, word [edi + 0x147e]
add esp, 0x10
xor eax, eax
cmp ecx, 5
setge al
push 0
push 8
push eax
push ebp
lea eax, [esp + 0xa8]
push 8
push eax
call fcn.005088d0
add esp, 0x10
push eax
lea eax, [esp + 0xcf]
push eax
call fcn.00414a10
movzx ecx, word [edi + 0x147e]
add esp, 0x10
xor eax, eax
cmp ecx, 5
setge al
push 0
push 8
push eax
push ebp
lea eax, [esp + 0x90]
push 8
push eax
call fcn.005088d0
add esp, 0x10
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00414a10
add esp, 0x10
movzx ecx, word [edi + 0x147e]
xor eax, eax
push 0
cmp ecx, 5
push 8
setge al
push eax
push ebp
lea eax, [esp + 0x9c]
push 8
push eax
call fcn.005088d0
add esp, 0x10
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.00414a10
lea eax, [esp + 0xb4]
push eax
push 0x61
push edi
call fcn.005484b0
mov eax, dword [esp + 0x4c]
add esp, 0x1c
test eax, eax
je 0x4ac6aa
add eax, 0x4fc
push eax
push dword [0x59c53c]
call fcn.004e0db0
add esp, 8
cmp dword [edi + 0x1460], 0
jne 0x4ac6be
call fcn.004e9900
mov dword [edi + 0x1460], eax
push dword [esp + 0x1c]
push dword [edi + 0x1460]
call fcn.004e9940
push dword [edi + 0x1460]
call fcn.004e98d0
mov ecx, dword [esp + 0x144]
add esp, 0xc
neg eax
sbb eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
inc eax
call fcn.00424604
add esp, 0x12c
ret