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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
mov eax, 0x180
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x158]
mov ebp, dword [esi + 0x154]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xcc]
imul eax, dword [esp + 0xd0]
add eax, ecx
push edi
lea edi, [ebp + 0x80]
xor ebx, ebx
lea ecx, [eax + eax*2]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
lea ecx, [ecx + ecx*8]
mov dword [esp + 0x34], 5
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0xc8]
shl edx, 2
mov eax, ecx
sub eax, edx
lea edx, [ecx + 0x20]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x24], eax
lea eax, [ecx + 0xd4]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x60]
neg eax
mov dword [esp + 0x40], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x48], edx
lea edx, [esi + 0x170]
sub eax, 0x20
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
jmp 0x464e5b
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 0xd0]
mov ecx, ebx
shr ecx, 1
imul ecx, eax
mov edx, ebx
push eax
mov eax, dword [esi + 0xb8]
and edx, 1
add ecx, edx
lea ecx, [eax + ecx*8]
push ecx
push ebp
call dword [fcn.004ee600]
mov eax, dword [esi + 0x16c]
mov edx, dword [esi + 0x188]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x15c]
add esp, 0xc
cmp ebx, 4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], edx
mov edx, dword [ecx]
sbb eax, eax
mov dword [esp + 0x58], edx
neg eax
cmp ebx, 5
jae 0x464ec3
mov ebx, 8
jmp 0x464ef3
cmp ebx, 0x19
jae 0x464ed3
test eax, eax
jne 0x464ed3
add ebx, 0xd
shr ebx, 1
jmp 0x464ef3
cmp ebx, 9
jae 0x464edc
add ebx, ebx
jmp 0x464ef3
cmp ebx, 0x19
jae 0x464ee6
add ebx, 8
jmp 0x464ef3
test eax, eax
je 0x464ef0
lea ebx, [ebx + ebx - 0x10]
jmp 0x464ef3
add ebx, 0xfffffffa
push ebp
call dword [fcn.004ee5c0]
mov eax, dword [esp + 0x58]
add esp, 4
test eax, eax
je 0x464f33
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
push ebx
push edx
push ebp
push edi
call dword [0x4ee5d4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push ebx
push ecx
lea eax, [ebp + 0x100]
push edi
push eax
call dword [0x4ee5cc]
jmp 0x464f5f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push edx
push ebx
push eax
push ebp
push edi
call dword [0x4ee5e8]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push ecx
push ebx
push edx
lea eax, [ebp + 0x100]
push edi
push eax
call dword [0x4ee5e0]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
add esp, 0x28
push 0
push eax
mov eax, dword [esp + 0xdc]
push ebx
push ecx
mov ecx, dword [esp + 0xe0]
push edi
push edx
mov edx, dword [esp + 0xe4]
push eax
mov eax, dword [esp + 0x6c]
push ecx
push edx
push eax
call fcn.00456a30
mov ax, word [edi]
mov ecx, dword [esp + 0x74]
imul ax, bx
mov edx, dword [ecx]
add esp, 0x28
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
cmp ax, 0xf800
mov word [edx], ax
jge 0x464fbf
mov eax, 0xfffff800
jmp 0x464fcf
cmp ax, 0x7ff
jle 0x464fcc
mov eax, 0x7ff
jmp 0x464fcf
movsx eax, ax
mov word [edx], ax
lea eax, [edx + 2]
lea ecx, [edi + 0x10]
mov edx, 7
mov ebx, dword [esp + 0x38]
add eax, 2
add ecx, 0x10
dec edx
mov bx, word [ebx + eax - 2]
mov word [eax - 2], bx
mov bx, word [ecx - 0x10]
mov word [eax + 0xc], bx
jne 0x464fdd
mov eax, dword [esp + 0x24]
mov cx, word [eax]
sub word [edi], cx
mov ecx, dword [esp + 0x28]
mov ax, word [edi]
cmp ecx, 4
jae 0x465022
movsx edx, ax
xor eax, eax
mov al, byte [edx*8 + 0x403ac4]
sub eax, 3
jmp 0x465033
movsx eax, ax
xor ecx, ecx
mov cl, byte [eax*8 + 0x404abc]
mov eax, ecx
sub eax, 2
push 0x407bf0
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.004473b0
mov edx, dword [esp + 0x24]
add esp, 8
add edx, eax
test eax, eax
mov dword [esp + 0x1c], edx
jbe 0x46506c
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, 1
shl edx, cl
or eax, edx
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x4650a8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
add eax, 2
add ecx, edi
mov dword [esp + 0x10], 7
mov dx, word [eax]
sub word [ecx + eax], dx
mov dx, word [ecx + eax]
mov word [eax], dx
mov edx, dword [esp + 0x10]
add eax, 2
dec edx
mov dword [esp + 0x10], edx
jne 0x46508a
jmp 0x4650d1
mov eax, 1
lea ecx, [edi + 0x10]
mov ebx, dword [esp + 0x24]
add ecx, 0x10
mov dx, word [ebx + eax*2]
sub word [ecx - 0x10], dx
mov dx, word [ecx - 0x10]
mov word [ebx + eax*2], dx
inc eax
cmp eax, 8
jb 0x4650b0
mov ebx, dword [esp + 0x10]
shl ebx, 7
add ebx, 0x407bf0
push ebx
push edi
call fcn.004473b0
mov edx, dword [esp + 0x28]
add esp, 8
add edx, eax
test eax, eax
mov dword [esp + 0x20], edx
jbe 0x465101
mov ecx, dword [esp + 0x34]
mov eax, 1
shl eax, cl
or dword [esp + 0x30], eax
mov ebx, 0x10
lea eax, [ebp + 0x100]
push ebx
push eax
push ebp
call dword [0x4ee704]
imul eax, dword [esp + 0x64]
xor edx, edx
mov ecx, dword [esp + 0x48]
div dword [esp + 0x68]
mov edx, dword [esp + 0x28]
add esp, 0xc
shl edx, 4
add edx, eax
add ecx, edx
mov edx, dword [esp + 0x20]
shl edx, 4
add edx, eax
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
cmp ecx, eax
jl 0x46515a
cmp dword [esp + 0x14], eax
jge 0x46538e
mov edx, dword [esp + 0x44]
mov ecx, 4
add edx, ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x4c]
add edx, ecx
inc eax
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x40]
sub edx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
add edx, ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, 0x1e
sub ebx, edx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x48]
add ebx, edx
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x34]
dec ebx
cmp eax, ecx
mov dword [esp + 0x34], ebx
jb 0x464e57
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
xor ecx, ecx
shr eax, 2
shr edx, 2
mov cl, byte [eax*8 + 0x40324c]
xor eax, eax
mov al, byte [edx*8 + 0x40324c]
sub ecx, 2
shl ecx, 4
sub eax, 2
add ebx, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xbc]
shl eax, 4
add ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0xd0]
shr ecx, 1
push ecx
push edx
push ebp
call dword [fcn.004ee600]
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0x16c]
mov edx, dword [esi + 0x180]
push eax
push ecx
lea eax, [esp + 0x40]
push edx
mov edx, dword [esi + 0x15c]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0xf8]
push eax
lea ecx, [esp + 0xc8]
lea eax, [ebp + 0x100]
push ecx
mov ecx, dword [esp + 0xf8]
push eax
mov eax, dword [esp + 0x100]
push edi
push ebp
push 4
push edx
mov edx, dword [esp + 0x108]
push eax
push ecx
push edx
call fcn.004653a0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
shl ecx, 4
shl edx, 4
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x60]
add ebx, ecx
add eax, edx
add esp, 0x4c
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
cmp ebx, eax
jl 0x4652a2
cmp dword [esp + 0x14], eax
jge 0x465381
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xc0]
shr eax, 1
push eax
push ecx
push ebp
call dword [fcn.004ee600]
mov edx, dword [esi + 0x188]
mov eax, dword [esi + 0x16c]
mov ecx, dword [esi + 0x184]
push edx
push eax
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esi + 0x15c]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
mov ecx, dword [esp + 0xf8]
lea eax, [esp + 0xd4]
push edx
mov edx, dword [esp + 0xf8]
push eax
lea eax, [ebp + 0x100]
push eax
mov eax, dword [esp + 0xfc]
push edi
push ebp
push 5
push ecx
mov ecx, dword [esp + 0x108]
push edx
push eax
push ecx
call fcn.004653a0
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
mov edx, edi
xor ecx, ecx
and edx, 3
add esp, 0x4c
shl edx, 3
or edx, 3
mov cl, byte [edx*8 + 0x47c104]
mov edx, dword [esp + 0x1c]
lea ecx, [ecx + edx - 5]
mov edx, ebp
shl ecx, 4
and edx, 3
add ecx, eax
shl edx, 3
add ebx, ecx
or edx, 3
xor ecx, ecx
mov cl, byte [edx*8 + 0x47c104]
mov edx, dword [esp + 0x20]
lea ecx, [ecx + edx - 5]
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x14]
add eax, ecx
cmp ebx, eax
jle 0x465377
mov edi, ebp
cmp ebx, eax
mov dword [esi + 0x160], edi
jge 0x465383
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0xb0
ret