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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x570f20]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
xor ecx, ecx
mov dword [esp + 0xc], eax
mov ax, cx
movzx ecx, ax
push ebp
mov ebp, dword [esp + 0xa0]
mov eax, ecx
shl ecx, 0x10
or eax, ecx
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], edx
test edi, edi
je 0x45f302
nop
movzx ecx, word [esi + eax*2]
inc word [esp + ecx*2 + 0x54]
lea ecx, [esp + ecx*2 + 0x54]
inc eax
cmp eax, edi
jb 0x45f2f0
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov ecx, 0xf
lea ecx, [ecx]
cmp word [esp + ecx*2 + 0x54], 0
jne 0x45f31e
dec ecx
cmp ecx, 1
jae 0x45f310
mov dword [esp + 0x28], ecx
cmp eax, ecx
jbe 0x45f32c
mov dword [esp + 0x10], ecx
mov eax, ecx
test ecx, ecx
jne 0x45f36e
mov ecx, dword [ebp]
mov dword [esp + 0xc], 0x140
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
add dword [ebp], 4
mov ecx, dword [ebp]
pop edi
mov dword [ecx], eax
add dword [ebp], 4
pop esi
mov dword [edx], 1
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004a7314
add esp, 0x8c
ret
push ebx
mov ebx, 1
cmp ecx, ebx
jbe 0x45f385
cmp word [esp + ebx*2 + 0x58], 0
jne 0x45f385
inc ebx
cmp ebx, ecx
jb 0x45f378
cmp eax, ebx
jae 0x45f38d
mov dword [esp + 0x14], ebx
mov edx, 1
mov eax, edx
movzx edi, word [esp + eax*2 + 0x58]
add edx, edx
sub edx, edi
js 0x45f3b9
inc eax
cmp eax, 0xf
jbe 0x45f394
test edx, edx
mov edx, dword [esp + 0xa0]
jle 0x45f3c1
test edx, edx
je 0x45f3b9
cmp ecx, 1
je 0x45f3c1
or eax, 0xffffffff
jmp 0x45f6d5
xor eax, eax
mov word [esp + 0x7a], ax
mov eax, 2
lea ecx, [ecx]
mov cx, word [esp + eax + 0x78]
add cx, word [esp + eax + 0x58]
add eax, 2
mov word [esp + eax + 0x78], cx
cmp eax, 0x1e
jb 0x45f3d0
mov edi, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0xa8], eax
jbe 0x45f421
cmp word [esi + eax*2], 0
je 0x45f417
movzx ecx, word [esi + eax*2]
movzx ecx, word [esp + ecx*2 + 0x78]
mov word [edi + ecx*2], ax
movzx ecx, word [esi + eax*2]
inc word [esp + ecx*2 + 0x78]
lea ecx, [esp + ecx*2 + 0x78]
inc eax
cmp eax, dword [esp + 0xa8]
jb 0x45f3f6
mov eax, edx
xor ecx, ecx
sub eax, ecx
je 0x45f46c
dec eax
je 0x45f446
mov dword [esp + 0x30], 0x4cb480
mov dword [esp + 0x38], 0x4cb4c0
mov dword [esp + 0x34], 0xffffffff
jmp 0x45f47c
mov eax, 0x4cb400
sub eax, 0x202
mov dword [esp + 0x30], eax
mov eax, 0x4cb440
sub eax, 0x202
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0x100
jmp 0x45f47c
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0x13
mov eax, dword [ebp]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
or ebp, 0xffffffff
lea ecx, [eax - 1]
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], ecx
cmp edx, 1
jne 0x45f4b4
cmp eax, 0x354
jmp 0x45f4be
cmp edx, 2
jne 0x45f4c4
cmp eax, 0x250
ja 0x45f6d0
mov dword [esp + 0x28], edi
jmp 0x45f4d0
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov al, bl
sub al, dl
mov byte [esp + 0x11], al
movzx eax, word [edi]
mov ecx, eax
cmp ecx, esi
jge 0x45f4f9
mov byte [esp + 0x10], 0
mov word [esp + 0x12], ax
jmp 0x45f526
jle 0x45f51a
movzx eax, word [edi]
mov ecx, dword [esp + 0x38]
add eax, eax
mov cl, byte [eax + ecx]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x30]
mov ax, word [eax + ecx]
mov word [esp + 0x12], ax
jmp 0x45f526
xor ecx, ecx
mov byte [esp + 0x10], 0x60
mov word [esp + 0x12], cx
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov ecx, ebx
sub ecx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x18]
shr edi, cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x54], eax
lea esi, [edx*4]
add edi, eax
lea ecx, [ecx + edi*4]
mov edi, dword [esp + 0x10]
sub ecx, esi
sub eax, edx
mov dword [ecx], edi
jne 0x45f557
lea ecx, [ebx - 1]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
test ecx, eax
je 0x45f577
shr eax, 1
test ecx, eax
jne 0x45f571
test eax, eax
je 0x45f588
lea edx, [eax - 1]
and edx, ecx
add edx, eax
mov dword [esp + 0x20], edx
jmp 0x45f590
mov dword [esp + 0x20], 0
add dword [esp + 0x28], 2
mov eax, 0xffff
add word [esp + ebx*2 + 0x58], ax
jne 0x45f5ba
cmp ebx, dword [esp + 0x2c]
je 0x45f68a
mov ecx, dword [esp + 0x28]
movzx edx, word [ecx]
mov eax, dword [esp + 0x48]
movzx ebx, word [eax + edx*2]
cmp ebx, dword [esp + 0x14]
jbe 0x45f4d0
mov esi, dword [esp + 0x50]
and esi, dword [esp + 0x20]
mov dword [esp + 0x3c], esi
cmp esi, ebp
je 0x45f4d0
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x45f5ea
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov edx, ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x2c]
lea eax, [eax + ecx*4]
mov ecx, ebx
sub ecx, edx
mov dword [esp + 0x24], eax
mov eax, 1
add edx, ecx
shl eax, cl
cmp edx, ebp
jae 0x45f62a
lea esi, [esp + edx*2 + 0x58]
movzx edi, word [esi]
sub eax, edi
test eax, eax
jle 0x45f626
inc edx
inc ecx
add esi, 2
add eax, eax
cmp edx, ebp
jb 0x45f612
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov eax, 1
shl eax, cl
add edx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x1c], edx
cmp eax, 1
jne 0x45f653
cmp edx, 0x354
jmp 0x45f65e
cmp eax, 2
jne 0x45f660
cmp edx, 0x250
ja 0x45f6d0
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
mov ebp, esi
mov byte [edx + ebp*4], cl
mov ecx, dword [eax]
mov dl, byte [esp + 0x14]
mov byte [ecx + ebp*4 + 1], dl
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 2
mov word [eax + ebp*4 + 2], cx
jmp 0x45f4d0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45f6b1
sub bl, byte [esp + 0x18]
xor edx, edx
mov word [esp + 0x12], dx
mov edx, dword [esp + 0x24]
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], bl
mov ecx, dword [esp + 0x10]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [eax*4]
mov eax, dword [esp + 0x44]
add dword [eax], ecx
mov eax, dword [esp + 0x4c]
mov dword [eax], edx
xor eax, eax
jmp 0x45f6d5
mov eax, 1
mov ecx, dword [esp + 0x98]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004a7314
add esp, 0x8c
ret