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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x4c0c08]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x4c], eax
push ebp
mov ebp, dword [esp + 0x90]
test ebp, ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
jbe 0x45f4e4
movzx ecx, word [ebx + eax*2]
inc word [esp + ecx*2 + 0x40]
lea ecx, [esp + ecx*2 + 0x40]
inc eax
cmp eax, ebp
jb 0x45f4d2
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx]
mov eax, 0xf
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
lea ebx, [ebx]
cmp word [esp + eax*2 + 0x40], 0
jne 0x45f50e
dec eax
cmp eax, 1
jae 0x45f500
cmp ecx, eax
mov dword [esp + 0x14], eax
jbe 0x45f51c
mov dword [esp + 0xc], eax
mov ecx, eax
test eax, eax
jne 0x45f532
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x78]
call fcn.004176e9
add esp, 0x7c
ret
push esi
mov esi, 1
cmp word [esp + esi*2 + 0x44], 0
jne 0x45f57a
cmp word [esp + esi*2 + 0x46], 0
jne 0x45f56a
cmp word [esp + esi*2 + 0x48], 0
jne 0x45f56d
cmp word [esp + esi*2 + 0x4a], 0
jne 0x45f572
cmp word [esp + esi*2 + 0x4c], 0
jne 0x45f577
add esi, 5
cmp esi, 0xf
jbe 0x45f538
jmp 0x45f57a
inc esi
jmp 0x45f57a
add esi, 2
jmp 0x45f57a
add esi, 3
jmp 0x45f57a
add esi, 4
cmp ecx, esi
jae 0x45f582
mov dword [esp + 0x10], esi
mov edx, 1
mov eax, edx
lea esp, [esp]
movzx ecx, word [esp + eax*2 + 0x44]
add edx, edx
sub edx, ecx
js 0x45f5d3
inc eax
cmp eax, 0xf
jbe 0x45f590
test edx, edx
push edi
mov edi, dword [esp + 0x90]
jle 0x45f5e6
test edi, edi
je 0x45f5bf
movzx eax, word [esp + 0x48]
mov ecx, ebp
sub ecx, eax
cmp ecx, 1
je 0x45f5e6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x78]
call fcn.004176e9
add esp, 0x7c
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x78]
call fcn.004176e9
add esp, 0x7c
ret
mov word [esp + 0x6a], 0
mov eax, 2
jmp 0x45f600
mov dx, word [esp + eax + 0x68]
add dx, word [esp + eax + 0x48]
mov cx, word [esp + eax + 0x4a]
add cx, dx
mov word [esp + eax + 0x6a], dx
mov word [esp + eax + 0x6c], cx
add eax, 4
cmp eax, 0x1e
jb 0x45f600
xor eax, eax
test ebp, ebp
jbe 0x45f65d
lea ebx, [ebx]
cmp word [ebx + eax*2], 0
je 0x45f658
movzx edx, word [ebx + eax*2]
movzx ecx, word [esp + edx*2 + 0x68]
mov edx, dword [esp + 0xa4]
mov word [edx + ecx*2], ax
movzx edx, word [ebx + eax*2]
inc word [esp + edx*2 + 0x68]
lea edx, [esp + edx*2 + 0x68]
inc eax
cmp eax, ebp
jb 0x45f630
mov eax, edi
sub eax, 0
mov edx, 0xffffffff
je 0x45f6a4
dec eax
je 0x45f682
mov dword [esp + 0x38], 0x4b2478
mov dword [esp + 0x3c], 0x4b24b8
mov dword [esp + 0x2c], edx
jmp 0x45f6bb
mov eax, 0x4b23f8
sub eax, 0x202
mov dword [esp + 0x38], eax
mov eax, 0x4b2438
sub eax, 0x202
mov dword [esp + 0x2c], pe_nt_image_headers32
jmp 0x45f6b7
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0x13
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
mov dword [esp + 0x30], edx
xor ebp, ebp
xor ebx, ebx
cmp edi, 1
lea edx, [eax - 1]
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edx
jne 0x45f6fe
cmp eax, 0x506
jae 0x45f976
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x24], eax
lea esp, [esp]
mov cl, byte [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ax, word [esi]
mov edx, dword [esp + 0x2c]
sub cl, bl
mov byte [esp + 0x11], cl
movzx ecx, ax
cmp ecx, edx
jge 0x45f738
mov byte [esp + 0x10], 0
mov word [esp + 0x12], ax
jmp 0x45f765
jle 0x45f759
movzx eax, word [esi]
mov edx, dword [esp + 0x3c]
shl eax, 1
mov cl, byte [eax + edx]
mov edx, dword [esp + 0x38]
mov ax, word [eax + edx]
mov byte [esp + 0x10], cl
mov word [esp + 0x12], ax
jmp 0x45f765
mov byte [esp + 0x10], 0x60
mov word [esp + 0x12], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
sub ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, ebx
mov edi, ebp
shr edi, cl
mov ecx, dword [esp + 0x20]
lea esi, [eax*4]
add edi, edx
lea ecx, [ecx + edi*4]
mov edi, dword [esp + 0x10]
sub edx, eax
sub ecx, esi
test edx, edx
mov dword [ecx], edi
jne 0x45f790
mov edx, dword [esp + 0x18]
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x45f7b6
lea esp, [esp]
shr eax, 1
test ebp, eax
jne 0x45f7b0
test eax, eax
je 0x45f7c5
lea ecx, [eax - 1]
and ecx, ebp
add ecx, eax
mov ebp, ecx
jmp 0x45f7c7
xor ebp, ebp
mov esi, dword [esp + 0x24]
add esi, 2
dec word [esp + edx*2 + 0x48]
cmp word [esp + edx*2 + 0x48], 0
mov dword [esp + 0x24], esi
jne 0x45f7fd
cmp edx, dword [esp + 0x1c]
je 0x45f8c9
mov ecx, dword [esp + 0x94]
mov edx, esi
movzx eax, word [edx]
movzx edx, word [ecx + eax*2]
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x14]
jbe 0x45f710
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
and esi, ebp
cmp esi, eax
mov dword [esp + 0x44], esi
je 0x45f710
test ebx, ebx
jne 0x45f825
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
sub ecx, ebx
mov dword [esp + 0x20], edx
mov eax, 1
lea edx, [ebx + ecx]
shl eax, cl
cmp edx, edi
jae 0x45f86c
lea esi, [esp + edx*2 + 0x48]
movzx edi, word [esi]
sub eax, edi
test eax, eax
jle 0x45f868
mov edi, dword [esp + 0x1c]
inc ecx
inc edx
add esi, 2
shl eax, 1
cmp edx, edi
jb 0x45f850
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov eax, 1
shl eax, cl
add edx, eax
mov dword [esp + 0x34], eax
cmp dword [esp + 0x90], 1
mov dword [esp + 0x28], edx
jne 0x45f898
mov eax, edx
cmp eax, 0x506
jae 0x45f976
mov edx, esi
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
mov byte [eax + edx*4], cl
mov ecx, dword [esi]
mov al, byte [esp + 0x14]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x30], edx
mov word [eax + edx*4 + 2], cx
jmp 0x45f710
mov edi, dword [esp + 0x9c]
mov al, dl
sub al, bl
test ebp, ebp
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], al
mov word [esp + 0x12], 0
je 0x45f945
mov esi, dword [esp + 0x20]
lea esp, [esp]
test ebx, ebx
je 0x45f914
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
and ecx, ebp
cmp ecx, eax
je 0x45f914
mov eax, dword [esp + 0x14]
mov esi, dword [edi]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x11], al
mov edx, eax
mov ecx, ebx
mov eax, ebp
shr eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esi + eax*4], ecx
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x45f936
nop
shr eax, 1
test ebp, eax
jne 0x45f930
test eax, eax
je 0x45f945
lea ecx, [eax - 1]
and ecx, ebp
add ecx, eax
mov ebp, ecx
jne 0x45f8f0
mov edx, dword [esp + 0x28]
mov ecx, dword [edi]
lea eax, [edx*4]
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [edi], ecx
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
mov dword [ecx], edx
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x78]
call fcn.004176e9
add esp, 0x7c
ret
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.004176e9
add esp, 0x7c
ret