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

Disassembly:
sub esp, 0x44
push ebx
push esi
mov eax, dword [ecx + 0xc]
push edi
push ebp
mov esi, ecx
mov ecx, dword [eax + 0x3c]
mov eax, dword [0x5681d8]
mov edx, dword [ecx + 0x28]
mov cl, byte [eax + 0x50]
mov dword [esp + 0x2c], edx
cmp cl, 3
mov edx, dword [esi + 8]
jne 0x4acb31
mov eax, dword [edx + 0x30]
mov ebx, dword [edx + 0x34]
mov edx, dword [edx + 0x38]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], ebx
jmp 0x4acb53
mov ebx, dword [edx + 0xac]
mov eax, dword [edx + 0xb0]
mov edx, dword [edx + 0xb4]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], eax
mov eax, dword [0x568154]
mov dword [esp + 0x50], edx
cmp eax, 1
jne 0x4acb73
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x78]
cmp edx, eax
jne 0x4acb73
test eax, eax
jl 0x4acb73
xor bl, bl
jmp 0x4acbac
mov al, byte [esi + 0x36]
test al, 1
jne 0x4acbaa
cmp cl, 3
jne 0x4acb83
mov bl, 0x74
jmp 0x4acbac
mov eax, dword [esi + 8]
mov cl, byte [eax + 0xa8]
test cl, 1
je 0x4acbaa
mov ecx, dword [0x5681d8]
mov edx, dword [ecx + 0x1b0]
cmp edx, 7
jne 0x4acbaa
mov bl, byte [eax + 0xa9]
jmp 0x4acbac
mov bl, 0xff
mov al, byte [esi + 0x36]
test al, 2
je 0x4acbb5
mov bl, 0x4a
test al, 4
je 0x4acbbb
mov bl, 0x97
fld dword [esp + 0x30]
fchs
mov ax, word [esi + 0x28]
fstp dword [esp + 0x34]
mov bp, word [esp + 0x60]
mov ecx, dword [esp + 0x24]
add bp, word [esi + 0x2a]
mov edx, dword [esp + 0x34]
add word [esp + 0x5c], ax
push ebp
mov eax, dword [esp + 0x60]
push eax
push ecx
mov eax, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x44]
push edx
call fcn.004302e0
mov ecx, dword [esp + 0x5c]
push ebp
mov edx, dword [esp + 0x28]
push ecx
mov eax, dword [esp + 0x38]
push edx
mov ecx, dword [esp + 0x34]
push eax
lea edx, [esp + 0x2e]
push ecx
lea eax, [esp + 0x36]
push edx
mov ecx, dword [esp + 0x44]
push eax
call fcn.004302e0
fld dword [esp + 0x28]
fchs
mov ecx, dword [esp + 0x5c]
push ebp
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
push ecx
mov eax, dword [esp + 0x38]
push edx
mov ecx, dword [esp + 0x44]
push eax
lea edx, [esp + 0x26]
push ecx
lea eax, [esp + 0x34]
push edx
mov ecx, dword [esp + 0x44]
push eax
call fcn.004302e0
mov ecx, dword [esp + 0x5c]
push ebp
mov edx, dword [esp + 0x28]
push ecx
push edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x24]
push eax
lea eax, [esp + 0x2a]
push ecx
mov ecx, dword [esp + 0x40]
push edx
movsx edi, bp
push eax
call fcn.004302e0
xor eax, eax
mov ecx, dword [0x580ca8]
mov al, bl
push ecx
mov dword [esp + 0x3c], eax
push eax
movsx edx, word [esp + 0x20]
movsx ecx, word [esp + 0x22]
movsx eax, word [esp + 0x1e]
push 0xa
push edx
movsx edx, word [esp + 0x30]
push ecx
push eax
movsx ecx, word [esp + 0x36]
movsx eax, word [esp + 0x3a]
push edx
push ecx
movsx edx, word [esp + 0x34]
movsx ecx, word [esp + 0x3c]
push eax
push edx
push ecx
push edi
push 1
mov ecx, dword [0x564408]
call fcn.0050ffa0
mov cl, byte [esi + 0x36]
test cl, cl
je 0x4acd44
mov al, byte [esi + 0x37]
test al, al
je 0x4acd44
cmp al, 0xa
jae 0x4acd44
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x3c]
mov ax, word [eax + 0x4a]
cmp word [ecx + 0x7c], ax
jne 0x4acd44
push 0
mov ecx, dword [0x5681d8]
call fcn.004e94d0
test eax, eax
je 0x4acd44
mov ecx, dword [eax + 0x18]
mov ebx, dword [0x580ca8]
xor eax, eax
push ebx
mov al, byte [esi + 0x37]
push 0x1e
shl eax, 5
push 0
push 0
push 0
lea edx, [eax + ecx]
movsx eax, word [esp + 0x2c]
sub eax, 8
push eax
movsx eax, word [esp + 0x32]
sub eax, 6
push eax
push edi
push edx
push ecx
mov ecx, dword [0x564408]
call fcn.0050fe00
mov al, byte [esi + 0x36]
test al, 1
je 0x4aceac
mov eax, dword [esi + 8]
mov cl, byte [eax + 0xa8]
test cl, 2
jne 0x4aceac
fld dword [esi + 0x30]
call fcn.005351bc
mov ebx, eax
test ebx, ebx
jle 0x4aceac
mov eax, dword [esp + 0x5c]
push ebp
mov ecx, dword [esp + 0x54]
push eax
mov edx, dword [esp + 0x3c]
push ecx
mov eax, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x22]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x44]
push edx
call fcn.004302e0
cmp ebx, 1
jge 0x4acda2
xor ebx, ebx
mov eax, dword [esi + 8]
movsx ecx, word [eax + 0x26]
test ecx, ecx
jle 0x4aceac
mov ax, word [esp + 0x10]
sub ax, 0xc
mov word [esp + 0x1c], ax
add ax, 0x17
mov word [esp + 0x22], ax
mov ax, word [esp + 0x12]
sub ax, 2
mov word [esp + 0x14], ax
mov ax, word [esp + 0x12]
dec ax
cmp ecx, ebx
mov word [esp + 0x1e], ax
jne 0x4ace07
mov word [esp + 0x16], 1
mov word [esp + 0x1a], 0xffff
mov word [esp + 0x18], 0
mov ax, word [esp + 0x22]
mov word [esp + 0x20], ax
jmp 0x4ace61
test ebx, ebx
jne 0x4ace20
mov word [esp + 0x20], 0xffff
mov word [esp + 0x16], 0
mov ax, word [esp + 0x1c]
jmp 0x4ace55
lea eax, [ebx + ebx*2]
mov word [esp + 0x16], 1
shl eax, 3
cdq
idiv ecx
mov cx, word [esp + 0x1c]
add cx, ax
mov ax, word [esp + 0x22]
mov word [esp + 0x20], cx
cmp cx, ax
jl 0x4ace4e
dec ax
mov word [esp + 0x20], ax
mov ax, word [esp + 0x20]
inc ax
mov word [esp + 0x18], 1
mov word [esp + 0x1a], ax
mov eax, dword [0x580ca8]
mov ecx, dword [esp + 0x38]
movsx edx, word [esp + 0x18]
push eax
push ecx
movsx eax, word [esp + 0x22]
movsx ecx, word [esp + 0x1e]
push 0x1e
push edx
movsx edx, word [esp + 0x30]
push eax
push ecx
movsx eax, word [esp + 0x36]
movsx ecx, word [esp + 0x3a]
push edx
push eax
movsx edx, word [esp + 0x34]
movsx eax, word [esp + 0x3c]
push ecx
push edx
push eax
mov ecx, dword [0x564408]
push edi
push 2
call fcn.0050ffa0
mov eax, dword [0x5681d8]
mov ecx, dword [eax + 0x9d4]
test ecx, ecx
je 0x4ad057
push 0
mov ecx, eax
call fcn.004e94d0
mov ebx, eax
mov ecx, dword [esi + 4]
mov esi, ecx
test ecx, ecx
jge 0x4aced7
mov esi, ecx
neg esi
mov ebp, 0x2710
mov eax, esi
cdq
idiv ebp
mov dword [esp + 0x38], eax
lea edx, [eax + eax*4]
lea ebp, [edx + edx*4]
lea eax, [ebp + ebp*4]
mov ebp, 0x3e8
lea eax, [eax + eax*4]
shl eax, 4
neg eax
add esi, eax
mov eax, esi
cdq
idiv ebp
mov dword [esp + 0x3c], eax
lea edx, [eax + eax*4]
lea ebp, [edx + edx*4]
lea eax, [ebp + ebp*4]
mov ebp, 0x64
shl eax, 3
neg eax
add esi, eax
mov eax, esi
cdq
idiv ebp
mov ebp, 0xa
mov dword [esp + 0x40], eax
shl eax, 2
lea edx, [eax + eax*4]
lea eax, [edx + edx*4]
neg eax
add esi, eax
mov eax, esi
cdq
idiv ebp
mov dword [esp + 0x44], eax
lea edx, [eax + eax*4]
add edx, edx
sub esi, edx
mov dword [esp + 0x48], esi
xor esi, esi
cmp ecx, 0x2710
jge 0x4acf5b
mov esi, 1
cmp ecx, 0x3e8
jge 0x4acf68
mov esi, 2
cmp ecx, 0x64
jge 0x4acf72
mov esi, 3
cmp ecx, 0xa
jge 0x4acf7c
mov esi, 4
test ecx, ecx
jge 0x4acfbe
movsx edx, word [esp + 0x1e]
add word [esp + 0x22], 7
movsx ecx, word [esp + 0x22]
add edx, 3
mov eax, dword [0x580ca8]
push eax
push 0x97
push 0x1e
lea ebp, [ecx + 5]
push 0
push 0
push 0
inc ecx
push 0
push edx
push ebp
push edx
push ecx
push edi
push 4
mov ecx, dword [0x564408]
call fcn.0050ffa0
cmp esi, 4
jg 0x4ad057
lea ebp, [esp + esi*4 + 0x38]
mov esi, 7
add word [esp + 0x22], si
mov eax, dword [ebp]
test eax, eax
je 0x4ad00f
shl eax, 5
mov ecx, dword [ebx + 0x18]
add eax, ecx
mov edx, dword [0x580ca8]
push edx
push 0x1e
movsx edx, word [esp + 0x26]
push 0
push 0
push 0
push edx
movsx edx, word [esp + 0x3a]
push edx
push edi
push eax
push ecx
mov ecx, dword [0x564408]
call fcn.0050fe00
jmp 0x4ad048
movsx eax, word [esp + 0x1e]
movsx ecx, word [esp + 0x22]
mov edx, dword [0x580ca8]
inc ecx
push edx
push 0xff
push 0x1e
lea edx, [eax + 5]
push 0
push 0
push 0
push 0
push edx
lea edx, [ecx + 4]
push edx
push eax
push ecx
push edi
push 4
mov ecx, dword [0x564408]
call fcn.0050ffa0
add ebp, 4
lea eax, [esp + 0x48]
cmp ebp, eax
jbe 0x4acfd0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44
ret 0xc