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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x58f080]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
imul eax, esi, 0x108
mov dword [esp + 0x30], edx
push edi
add eax, 0xd2c
add eax, ecx
add ecx, 0x21cc
mov dword [esp + 0x50], eax
imul eax, esi, 0xcc0
add eax, ecx
test esi, esi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x58], eax
sete bl
lea eax, [esp + 0xb8]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x6c], eax
or edi, 0xffffffff
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x40], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x54], edi
movzx eax, word [eax + 2]
imul eax, eax
cdq
and edx, 3
lea esi, [edx + eax]
movzx edx, byte [ebx + 0x5555a0]
mov eax, dword [ebp + 0xc]
sar esi, 2
lea eax, [eax + edx*2]
add eax, edx
imul ecx, eax, 0xb
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
movzx edx, byte [ecx + eax]
mov ecx, 0xf
lea eax, [ebx - 1]
mov dword [esp + 0x20], eax
cmp ebx, ecx
jg 0x45f4bb
mov edi, dword [esp + 0x34]
movzx eax, byte [ecx + 0x559220]
movsx eax, word [edi + eax*2]
mov edi, dword [esp + 0x40]
imul eax, eax
cmp eax, esi
jg 0x45f4b5
dec ecx
cmp ecx, ebx
jge 0x45f490
mov eax, dword [esp + 0x20]
jmp 0x45f4bb
mov eax, ecx
mov dword [esp + 0x20], ecx
cmp eax, 0xf
jge 0x45f4c5
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
mov esi, edx
cdq
add esi, esi
mov ebx, edx
mov dword [esp + 0x18], eax
push ebx
push dword [esp + 0x1c]
movzx ecx, word [esi + 0x553938]
mov eax, ecx
mov dword [esp + 0x24], ebx
cdq
push edx
push eax
call fcn.004a6930
cmp dword [ebp + 0xc], 0
mov ebx, 0x553b36
mov dword [esp + 0x7c], eax
mov dword [esp + 0x64], edx
jne 0x45f509
mov ecx, ebx
sub ecx, esi
movzx eax, word [ecx]
jmp 0x45f50b
xor eax, eax
push dword [esp + 0x1c]
cdq
push dword [esp + 0x1c]
push edx
push eax
call fcn.004a6930
mov dword [esp + 0x98], eax
imul eax, dword [esp + 0x2c], 0x88
mov dword [esp + 0x9c], edx
add eax, dword [esp + 0x74]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0xa0], eax
jne 0x45f549
sub ebx, esi
movzx eax, word [ebx]
jmp 0x45f54b
xor eax, eax
push dword [esp + 0x1c]
cdq
push dword [esp + 0x1c]
push edx
push eax
call fcn.004a6930
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0xac], edx
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x20]
jg 0x45f89e
lea ecx, [esp + 0xda]
lea ecx, [ecx + eax*8]
jmp 0x45f5a0
movzx edx, byte [ebx + 0x559220]
mov eax, dword [esp + 0x34]
mov esi, dword [ebp + 0x14]
lea ebx, [edx + edx]
movzx eax, word [ebx + eax]
movzx edi, word [esi + edx*2 + 0x20]
mov dword [esp + 0x60], ebx
xor ebx, ebx
test ax, ax
cwde
sets bl
mov dword [esp + 0x90], ebx
test ebx, ebx
je 0x45f5d4
neg eax
movzx edx, word [esi + edx*2 + 0xc0]
mov ebx, dword [esp + 0x10]
add edx, eax
mov esi, edx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x6c]
mov eax, 0x7ff
imul esi, edi
mov edi, edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x14], 0
shr esi, 0x11
cmp esi, 0x7ff
cmovg esi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov dword [esp + 0x6c], eax
movzx eax, byte [ebx + 0x5555a1]
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x58], edx
lea eax, [eax + eax*2]
mov dword [esp + 0x84], eax
lea eax, [esi*2 + 0x5545a0]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
movzx edx, word [eax + ebx]
mov eax, edx
neg eax
mov dword [esp + 0x44], eax
mov eax, esi
imul eax, edx
mov edx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x4c], ecx
cmp esi, 2
mov dword [esp + 0x3c], 0
mov ecx, 2
mov eax, esi
cmovg eax, ecx
mov ecx, 0x7fffff
mov dword [esp + 0x2c], ecx
or ebx, 0xffffffff
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x84]
add ecx, eax
mov dword [edi], ebx
imul eax, ecx, 0x88
add eax, dword [esp + 0x74]
mov dword [edi + 8], eax
cmp esi, 0x7ff
ja 0x45f841
cmp dword [esp + 0x10], 0xf
jge 0x45f6c6
imul eax, ecx, 0xb
mov ecx, dword [esp + 0x50]
mov al, byte [eax + ecx]
movzx eax, al
movzx eax, word [eax*2 + 0x553938]
jmp 0x45f6c8
xor eax, eax
push dword [esp + 0x1c]
cdq
push dword [esp + 0x1c]
push edx
push eax
call fcn.004a6930
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
imul eax, eax
movzx ecx, word [ecx + 0x559230]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x70]
imul edx, edx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
sub eax, edx
imul eax, ecx
cdq
mov ecx, edx
shld ecx, eax, 8
shl eax, 8
cmp esi, 0x43
mov dword [esp + 0x80], eax
mov eax, 0x43
mov dword [esp + 0x88], ecx
mov ecx, esi
cmovg ecx, eax
mov eax, dword [esp + 0x50]
add ecx, ecx
mov dword [esp + 0x94], ecx
movzx edx, word [eax]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x9c], edx
mov eax, dword [eax + 8]
movzx eax, word [eax + ecx]
add eax, edx
cdq
push edx
push eax
call fcn.004a6930
mov ecx, dword [esp + 0x38]
add eax, dword [ecx]
adc edx, dword [ecx + 4]
add eax, dword [esp + 0x78]
adc edx, dword [esp + 0x80]
cmp edx, 0x7fffff
jg 0x45f78f
jl 0x45f77d
cmp eax, 0xffffffff
jae 0x45f78f
mov ecx, dword [esp + 0x38]
mov ebx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], 0
mov eax, dword [ecx + 0x18]
mov ecx, dword [esp + 0x8c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
movzx eax, word [eax + ecx]
add eax, dword [esp + 0x9c]
cdq
push edx
push eax
call fcn.004a6930
mov ecx, dword [esp + 0x38]
add eax, dword [ecx + 0x10]
adc edx, dword [ecx + 0x14]
add eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
adc edx, dword [esp + 0x80]
cmp edx, ecx
jg 0x45f7e3
jl 0x45f7d7
cmp eax, ebx
jae 0x45f7e3
mov ebx, eax
mov dword [esp + 0x3c], 1
mov ecx, edx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x90]
mov dword [edi], ebx
mov dword [edi + 4], ecx
mov byte [eax - 1], dl
mov edx, dword [esp + 0x3c]
mov word [eax], si
mov byte [eax - 2], dl
test esi, esi
je 0x45f84b
add dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x88]
adc ebx, ecx
cmp ebx, dword [esp + 0x64]
jg 0x45f855
mov ecx, dword [esp + 0x30]
jl 0x45f823
cmp ecx, dword [esp + 0x7c]
jae 0x45f855
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x54], edx
jmp 0x45f859
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
jmp 0x45f85d
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x45f85d
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add dword [esp + 0x48], 2
add eax, 4
inc edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
inc esi
add dword [esp + 0x4c], eax
add edi, 0x10
mov dword [esp + 0x14], edx
cmp edx, 1
jle 0x45f660
mov ecx, dword [esp + 0x24]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x20]
jle 0x45f5a0
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov esi, 0x10
sub esi, eax
add esi, esi
push esi
lea eax, [ecx + eax*2]
push 0
push eax
call fcn.00496b90
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x68]
push esi
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.00496b90
add esp, 0x18
cmp edi, 0xffffffff
jne 0x45f8ea
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0049493f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x68]
xor esi, esi
mov edx, dword [esp + 0x54]
lea eax, [ecx + edi*2]
mov byte [esp + eax*4 + 0xd8], dl
cmp edi, ebx
jl 0x45f954
movzx ebx, byte [edi + 0x559220]
lea eax, [ecx + edi*2]
lea edx, [esp + 0xd8]
mov dword [esp + 0x44], ebx
cmp byte [edx + eax*4 + 1], 0
lea edx, [edx + eax*4]
movsx eax, word [edx + 2]
mov ecx, eax
je 0x45f929
neg ecx
mov ebx, dword [esp + 0x5c]
or esi, eax
mov eax, dword [ebp + 0x14]
mov word [ebx + edi*2], cx
dec edi
mov ebx, dword [esp + 0x44]
mov ax, word [eax + ebx*2]
imul ax, cx
mov ecx, dword [esp + 0x34]
mov word [ecx + ebx*2], ax
movsx ecx, byte [edx]
cmp edi, dword [esp + 0x28]
jge 0x45f902
mov ecx, dword [esp + 0x15c]
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.0049493f
mov esp, ebp
pop ebp
ret