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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2f3c
call fcn.0048163c
push ebx
mov ebx, ecx
xor ecx, ecx
test byte [ebx + 0x44], 2
push esi
push edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
je 0x45f72f
xor eax, eax
jmp 0x45f732
mov eax, dword [ebx + 0x38]
mov edi, dword [ebp + 8]
inc eax
mov dword [esp + 0x60], eax
cmp edi, ecx
jge 0x45f762
mov eax, dword [ebx + 0x94]
shl eax, 5
mov dword [esp + 0x24], 1
mov edi, 0x7fffffff
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], eax
jmp 0x45f7cf
mov esi, dword [ebx + 0xb0]
cmp esi, ecx
je 0x45f78f
mov dword [ebx + 0xb0], ecx
push esi
xor edx, edx
mov ecx, ebx
call fcn.0045f706
mov ecx, esi
sub ecx, eax
mov dword [ebx + 0xb0], ecx
je 0x45f78f
xor eax, eax
jmp 0x46024a
mov esi, dword [ebx + 0xb4]
mov dword [esp + 0xc], edi
test esi, esi
je 0x45f7d3
cmp edi, esi
jge 0x45f7a3
mov esi, edi
cmp dword [esp + 0x20], 0
je 0x45f7c1
push esi
push dword [ebx + 0xb8]
push dword [esp + 0x28]
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esp + 0x20], esi
sub dword [ebx + 0xb4], esi
add dword [ebx + 0xb8], esi
sub edi, esi
mov dword [esp + 0xc], edi
lea ecx, [ebx + 0x54]
call fcn.0045c966
mov ecx, dword [ebx + 0x44]
mov esi, eax
imul eax, dword [esp + 0x60]
and ecx, 1
inc ecx
shl eax, cl
cmp dword [esp + 0x24], 0
mov dword [esp + 0x18], eax
je 0x45f827
mov ecx, dword [ebx]
cmp dword [ecx], 0
mov eax, 0xbb8
mov edx, eax
je 0x45f810
mov ecx, dword [0x57fb50]
cmp ecx, eax
jae 0x45f810
mov edx, ecx
mov eax, dword [ebx + 0x40]
imul eax, edx
xor edx, edx
div esi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [esp + 0x24], eax
test edi, edi
jle 0x4600bb
mov esi, dword [esp + 0x4c]
mov edi, ebx
call fcn.0045cb10
test eax, eax
je 0x4600bb
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45f854
mov ecx, dword [esp + 0xc]
cmp ecx, dword [esp + 0x18]
jae 0x45f85a
lea eax, [ebx + 0xc620]
and dword [ebx + 0x48], 0
cmp dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x5c], eax
je 0x45f897
mov eax, dword [ebx + 4]
sub eax, 4
cdq
mov dword [esp + 0x50], eax
mov eax, dword [ebx]
mov dword [esp + 0x54], edx
call fcn.0045a69f
mov ecx, eax
mov eax, dword [ebx + 0xc]
mov edi, edx
cdq
sub ecx, eax
sbb edi, edx
add dword [esp + 0x50], ecx
adc dword [esp + 0x54], edi
xor edi, edi
cmp dword [ebx + 0x5c], edi
je 0x45f8a2
add dword [ebx + 4], 2
mov eax, dword [ebx + 0x58]
cmp eax, 3
jne 0x45fc06
lea eax, [esp + 0xa8]
mov edx, ebx
call fcn.0045d7f1
test eax, eax
je 0x45fbf6
cmp dword [esp + 0x24], edi
je 0x45f8d4
cmp dword [esp + 0x14], edi
jne 0x45f96b
lea eax, [ebx + 0x54]
call fcn.0045c9b4
inc dword [ebx + 4]
mov esi, eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x64], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jge 0x45f932
mov eax, dword [ebx + 0x14]
and eax, 0xfff
mov edi, 0x1000
sub edi, eax
cmp esi, edi
jge 0x45f907
mov edi, esi
sub edx, ecx
cmp edi, edx
jle 0x45f90f
mov edi, edx
push edi
lea ecx, [ecx + ebx + 0x120]
push ecx
lea eax, [eax + ebx + 0x8120]
push eax
call sub.msvcrt.dll_memcpy
add dword [ebx + 4], edi
add dword [ebx + 0x14], edi
add esp, 0xc
sub esi, edi
jne 0x45f8e8
and dword [ebx + 0x1c], 0xfffffff8
jne 0x45f942
inc dword [ebx + 0x18]
mov dword [ebx + 0x1c], 0x20
mov eax, dword [ebx + 0x18]
lea esi, [eax + 1]
shl esi, 5
sub esi, dword [ebx + 0x1c]
shr esi, 3
mov dword [esp + 0x4c], esi
cmp eax, 0x400
jbe 0x45f96b
add eax, 0xfffffc00
add dword [ebx + 0x14], 0xfffff000
mov dword [ebx + 0x18], eax
cmp dword [esp + 0x24], 0
jne 0x45fdc1
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0xa8]
sub eax, esi
js 0x45fb83
xor esi, esi
cmp eax, esi
jle 0x45f99a
shl eax, 3
push eax
mov ecx, ebx
call fcn.0045cd2f
mov eax, dword [ebx + 0x54]
cmp eax, 2
jne 0x45f9b4
xor eax, eax
cmp dword [ebx + 0x64], 2
sete al
lea eax, [eax*4 + 2]
jmp 0x45f9ba
imul eax, eax, 3
add eax, dword [ebx + 0x64]
imul eax, eax, 0x94
add eax, 0x5c25d8
push 0x270
mov dword [ebx + 0x7c], eax
lea eax, [esp + 0x5cc]
push esi
push eax
call sub.msvcrt.dll_memset
lea eax, [esp + 0xbc]
add esp, 0xc
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], eax
push 0x1210
lea eax, [esp + 0xb3c]
push esi
push eax
call sub.msvcrt.dll_memset
lea eax, [esp + 0xb44]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x5d4]
mov dword [esp + 0x54], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [ebx + 0x74], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x34], eax
mov edi, 0x8c
push dword [esp + 0x44]
mov eax, dword [ebx + 0x18]
push dword [esp + 0x14]
and eax, 0x3ff
push dword [esp + 0x34]
mov eax, dword [ebx + eax*4 + 0x8120]
push dword [esp + 0x54]
bswap eax
push ebx
mov dword [ebx + 0x20], eax
call fcn.0045d892
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
sub ecx, eax
push ecx
push edx
push dword [esp + 0x50]
mov esi, ebx
push dword [esp + 0x28]
call fcn.0045db1c
test eax, eax
je 0x45fb74
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add dword [esp + 0x2c], edi
add dword [esp + 0x34], edi
add dword [esp + 0x48], 0x138
mov esi, 0x908
add dword [esp + 0x1c], esi
cmp eax, dword [ebx + 0x38]
jbe 0x45fa38
cmp dword [ebx + 0x6c], 1
jne 0x45fad4
cmp dword [ebx + 0x70], 0
je 0x45fad4
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x700]
push ecx
lea ecx, [esp + 0xb3c]
push ecx
add eax, 0x8c
push ebx
call fcn.0045df7c
test byte [ebx + 0x44], 2
je 0x45faeb
mov ecx, 0x242
lea eax, [esp + 0xb38]
call fcn.0045f6ee
and dword [esp + 0x10], 0
lea eax, [esp + 0xb38]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1d48]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
push dword [esp + 0x3c]
push dword [esp + 0x38]
push ebx
call fcn.0045ec7c
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add dword [esp + 0x1c], edi
add dword [esp + 0x34], 0x900
add dword [esp + 0x2c], esi
cmp eax, dword [esp + 0x60]
jl 0x45fb0e
push 0x12
push dword [esp + 0x2c]
lea edx, [esp + 0x1d50]
mov ecx, ebx
call dword [ebx + 0x50]
inc dword [esp + 0x44]
add dword [esp + 0x38], 0x44
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x54]
and eax, 1
cmp dword [esp + 0x44], eax
jg 0x45fb9e
xor esi, esi
jmp 0x45f9ed
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0x20
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x28]
add eax, dword [esp + 0x18]
push eax
push 0
push dword [esp + 0x30]
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebx + 0xc620]
cmp dword [esp + 0x5c], ecx
jne 0x45fbdb
cmp dword [esp + 0x20], 0
je 0x45fbcd
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc], eax
jae 0x45fbbf
mov eax, dword [esp + 0xc]
push eax
push ecx
push dword [esp + 0x28]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x18]
jb 0x460083
cmp dword [esp + 0x20], 0
je 0x45fbea
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0xc], eax
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0xc], 0
jg 0x45f833
jmp 0x4600bb
cmp eax, 1
jne 0x45fcc3
cmp dword [ebx + 0x6c], eax
jne 0x45fc20
mov eax, dword [ebx + 0x70]
lea eax, [eax*8 + 8]
jmp 0x45fc28
mov ecx, dword [ebx + 0x38]
push 0x20
pop eax
shl eax, cl
mov dword [ebx + 0x78], eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x6c]
push eax
mov edx, ebx
call fcn.0045f0ea
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 0x10]
jge 0x4600bb
cmp dword [esp + 0x24], edi
jne 0x45fdc1
push 0xc
pop esi
mov ecx, dword [ebx + 0x38]
mov eax, pe_nt_image_headers32
shl eax, cl
push eax
lea eax, [esp + 0x1cc]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x1d0]
mov edx, ebx
call fcn.0045f155
test byte [ebx + 0x44], 2
je 0x45fca5
push 0x20
pop ecx
lea eax, [esp + 0x1c8]
call fcn.0045f6ee
push 1
push dword [esp + 0x2c]
lea edx, [esp + 0x1d0]
mov ecx, ebx
call dword [ebx + 0x50]
dec esi
mov dword [esp + 0x28], eax
jne 0x45fc58
jmp 0x45fb9e
cmp eax, 2
jne 0x45fbf6
test byte [ebx + 0x54], 1
je 0x45fce9
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x60]
add eax, eax
sub eax, dword [ebx + 0x38]
add eax, eax
movzx eax, byte [ecx + eax*8 + 0x5c4a98]
jmp 0x45fcec
push 4
pop eax
movzx edx, byte [eax + 0x5c4a80]
mov ecx, dword [ebx + 0x38]
shl edx, cl
cmp dword [ebx + 0x6c], 1
mov dword [ebx + 0x74], edx
jne 0x45fd10
mov ecx, dword [ebx + 0x70]
lea ecx, [ecx*8 + 8]
mov dword [ebx + 0x78], ecx
jmp 0x45fd13
mov dword [ebx + 0x78], edx
cdq
sub eax, edx
lea ecx, [esp + 0x838]
push ecx
lea ecx, [esp + 0xac]
sar eax, 1
mov eax, dword [eax*4 + 0x57fcc0]
push ecx
mov edx, ebx
call fcn.0045f1f8
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 0x10]
jge 0x4600bb
cmp dword [esp + 0x24], edi
jne 0x45fdc1
xor esi, esi
mov ecx, dword [ebx + 0x38]
mov eax, 0x180
shl eax, cl
push eax
lea eax, [esp + 0x2cc]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
sar eax, 2
lea ecx, [esp + 0x2c8]
push ecx
shl eax, 8
lea eax, [esp + eax + 0x83c]
push ebx
lea ecx, [esp + 0xb0]
call fcn.0045f2dc
test byte [ebx + 0x44], 2
je 0x45fda0
push 0x60
pop ecx
lea eax, [esp + 0x2c8]
call fcn.0045f6ee
push 3
push dword [esp + 0x2c]
lea edx, [esp + 0x2d0]
mov ecx, ebx
call dword [ebx + 0x50]
inc esi
mov dword [esp + 0x28], eax
cmp esi, 0xc
jl 0x45fd4a
jmp 0x45fb9e
xor eax, eax
cmp dword [esp + 0x14], eax
jne 0x45ffb1
mov ecx, dword [ebx + 0x8120]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x5c]
mov edx, eax
neg edx
sbb edx, edx
and edx, 0x9891fe16
add edx, 0x676e6958
cmp ecx, edx
je 0x45fe0e
neg eax
sbb eax, eax
and eax, 0x909a011d
add eax, 0x6f666e49
cmp ecx, eax
jne 0x45fe8d
mov dword [esp + 0x1c], 1
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx]
cdq
add dword [ecx + 0x18], eax
mov eax, 0x4090
adc dword [ecx + 0x1c], edx
sub eax, dword [ebx + 0x5c]
lea eax, [ebx + eax*2]
mov dl, byte [eax + 7]
add eax, 8
mov byte [esp + 0x33], dl
mov dword [esp + 0x10], eax
test dl, 1
je 0x45fe4d
cmp dword [ebp + 8], 0xfffffffe
jne 0x45fe46
mov ecx, dword [eax]
bswap ecx
mov dword [esp + 0x14], ecx
add eax, 4
mov dword [esp + 0x10], eax
test dl, 2
je 0x45ff2f
mov edi, dword [eax]
bswap edi
test edi, edi
je 0x45ff26
mov esi, dword [ebx]
call fcn.0045a747
sub edi, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
add edi, 0x2000
add eax, 0x4000
cmp edi, eax
jbe 0x45ff22
and dword [esp + 0x14], 0
jmp 0x45ffa3
lea eax, [ebx + 0x54]
call fcn.0045c989
mov ecx, eax
mov eax, ebx
sub eax, ecx
cmp dword [eax + 0x8144], 0x49524256
jne 0x460026
test byte [ebx + 0x44], 8
jne 0x45feca
movzx ecx, byte [eax + 0x814a]
movzx edi, byte [eax + 0x814b]
shl ecx, 8
or ecx, edi
mov dword [ebx + 0xa8], ecx
mov ecx, dword [ebx + 0xa8]
cmp ecx, 0xfa0
jle 0x45fee6
test byte [ebx + 0x54], 1
jne 0x45fee6
sar ecx, 1
mov dword [ebx + 0xa8], ecx
add dword [ebx + 0xa8], 0xfffffdef
jns 0x45fef9
and dword [ebx + 0xa8], 0
cmp dword [ebp + 8], 0xfffffffe
jne 0x460026
mov eax, dword [eax + 0x8152]
or dword [ebx + 0x80], 0xffffffff
bswap eax
mov dword [esp + 0x14], eax
mov dword [ebp + 8], 0xfffffffd
jmp 0x4600bb
mov dl, byte [esp + 0x33]
add dword [esp + 0x10], 4
mov eax, dword [esp + 0x10]
test dl, 4
je 0x45ff62
cmp dword [esp + 0x1c], 0
jne 0x45ff5f
xor esi, esi
mov cl, byte [esi + eax]
cmp cl, byte [esi + eax + 1]
ja 0x45ff5f
inc esi
cmp esi, 0x63
jl 0x45ff3d
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push 0x19
lea edi, [ebx + 0xbc]
pop ecx
rep movsd dword es:[edi], dword [esi]
add eax, 0x64
test dl, 8
je 0x45ff6a
add eax, 4
mov eax, dword [eax + 0x14]
bswap eax
and eax, 0xffffff
test byte [ebx + 0x44], 8
jne 0x45ff98
test eax, eax
je 0x45ff98
mov edx, eax
shr edx, 0xc
mov ecx, 0xfff
and edx, ecx
and eax, ecx
mov dword [ebx + 0xa8], edx
mov dword [ebx + 0xac], eax
cmp dword [esp + 0x14], 0
jne 0x4600aa
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x40], 1
jmp 0x460026
cmp dword [esp + 0x40], eax
je 0x45ffc1
dec dword [esp + 0x14]
mov dword [esp + 0x40], eax
jmp 0x460026
mov eax, dword [ebx + 0x94]
lea ecx, [eax + 1]
shl ecx, 5
cmp dword [esp + 0x14], ecx
jne 0x460026
test al, al
jne 0x45fff0
lea eax, [eax*8 + 0x800]
push eax
push dword [ebx + 0x90]
call fcn.004554cf
mov dword [ebx + 0x90], eax
mov ecx, dword [ebx + 0x94]
mov eax, dword [ebx + 0x90]
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0x54]
mov dword [eax + ecx*8 + 4], edx
mov ecx, dword [ebp + 8]
inc dword [ebx + 0x94]
and ecx, 0x7fffffff
cmp dword [ebx + 0x94], ecx
jae 0x4600bb
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x60]
cmp ecx, edx
je 0x460040
test ecx, ecx
je 0x46003a
or edx, 0xffffffff
mov dword [ebx + 0x80], edx
inc dword [esp + 0x14]
cmp dword [ebp + 8], 0xfffffffe
jne 0x46006f
cmp dword [esp + 0x40], 0
jne 0x460061
lea esi, [ebx + 0x54]
call fcn.0045c918
add dword [esp + 0x3c], eax
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x24]
jae 0x4600bb
cmp dword [ebp + 8], 0xfffffffe
jl 0x45fbf6
call fcn.00459bd0
test eax, eax
jne 0x4600bb
jmp 0x45fbf6
mov eax, dword [esp + 0xc]
lea ecx, [eax + ebx + 0xc620]
mov dword [ebx + 0xb8], ecx
mov ecx, dword [esp + 0x18]
sub ecx, eax
and dword [esp + 0xc], 0
mov dword [ebx + 0xb4], ecx
jmp 0x4601cd
cmp dword [esp + 0x1c], 0
jne 0x4600b8
or dword [ebx + 0x80], 0xffffffff
dec dword [ebp + 8]
xor ecx, ecx
cmp dword [esp + 0x24], ecx
je 0x4601c7
cmp dword [ebp + 8], 0xfffffffd
jl 0x46010f
mov eax, dword [ebx + 0x44]
test al, 2
jne 0x4600d7
mov ecx, dword [ebx + 0x38]
and eax, 1
cmp dword [ebx + 0x58], 3
lea ecx, [eax + ecx + 1]
jne 0x460103
mov edx, dword [ebx + 0xac]
mov edi, 0x211
add dword [ebx + 0xa8], edi
cmp edx, edi
jg 0x4600fb
mov edi, edx
sub edx, edi
mov dword [ebx + 0xac], edx
shl dword [ebx + 0xa8], cl
shl dword [ebx + 0xac], cl
cmp dword [ebp + 8], 0xfffffffe
jne 0x46014c
cmp dword [esp + 0x14], 1
jbe 0x46014c
mov esi, dword [ebx]
call fcn.0045a747
push 0
push dword [esp + 0x18]
push edx
push eax
call fcn.004815cc
mov ecx, dword [esp + 0x3c]
xor esi, esi
push esi
push dword [esp + 0x40]
shr ecx, 1
add eax, ecx
adc edx, esi
push edx
push eax
call fcn.0048166c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x98], eax
mul dword [esp + 0x14]
mov esi, eax
mov eax, dword [ebx + 0xac]
add eax, dword [ebx + 0xa8]
mov ecx, edx
cdq
cmp edx, ecx
ja 0x460175
jb 0x460179
cmp eax, esi
jb 0x460179
mov eax, esi
mov edx, ecx
sub esi, eax
sbb ecx, edx
cmp dword [ebx + 0xa4], ecx
jb 0x460199
ja 0x46018f
cmp dword [ebx + 0xa0], esi
jb 0x460199
cmp dword [ebx + 0xc], 0
jne 0x45f788
cmp dword [ebx + 0xc], 0
mov dword [ebx + 0xa0], esi
mov dword [ebx + 0xa4], ecx
jne 0x45f788
mov eax, dword [ebx]
call fcn.0045a69f
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], edx
jmp 0x45f788
cmp dword [esp + 0xc], ecx
jne 0x4601ec
mov edi, ebx
call fcn.0045cb10
test eax, eax
je 0x4601ec
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x460243
mov eax, dword [esp + 0x18]
cmp dword [ebx + 0xac], eax
jbe 0x460243
mov eax, dword [ebx + 0xac]
xor edx, edx
div dword [esp + 0x18]
cmp dword [ebx + 0xb4], edx
ja 0x460243
push dword [ebx]
call fcn.0045a6ea
test eax, eax
je 0x460243
cmp dword [ebx + 0x48], 0
je 0x46021f
mov eax, dword [ebx + 0xac]
xor edx, edx
div dword [esp + 0x18]
jmp 0x460225
mov edx, dword [ebx + 0xac]
sub edx, dword [ebx + 0xb4]
mov eax, dword [ebp + 8]
add dword [esp + 0xc], edx
cmp dword [esp + 0xc], eax
jle 0x46023c
mov dword [esp + 0xc], eax
and dword [ebx + 0xb4], 0
mov eax, dword [ebp + 8]
sub eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4