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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x394
xor eax, eax
cmp byte [ebp + 0x10], al
push ebx
setne al
and dword [esp + 0x20], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [edi + 4]
cwde
mov dword [esp + 0x14], eax
shl eax, 2
sub ecx, eax
mov dword [esp + 0x2c], ebx
mov esi, dword [ecx + 4]
mov ecx, esi
call fcn.00409380
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x14]
inc dword [eax]
add ecx, 0xfffffffd
add ecx, dword [edi + 8]
mov dword [esp + 0x6c], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [esp + 0x7c], ecx
lea eax, [edx + edx]
mov dword [esp + 0x1c], edx
cmp eax, ecx
je 0x45f969
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00412c34
and dword [esi], 0
mov dword [esi + 0xc], 0x202444
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
push 4
add ecx, ebx
call fcn.0044cf60
jmp 0x45fda5
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x1a000084], edx
mov dword [esp + 0x40], 0x4b450c
or esi, 0xffffffff
call fcn.0046057b
test al, al
jne 0x45f9c5
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00412c34
and dword [esi], 0
mov dword [esi + 0xc], 0x202444
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
push 2
add ecx, ebx
call fcn.0044cf60
jmp 0x45fd9c
and dword [esp + 0x78], 0x20
and dword [esp + 0x30], 0x20
push 3
pop eax
sub eax, dword [esp + 0x14]
cmp dword [esp + 0x7c], 0x1a
mov dword [esp + 0x24], eax
jle 0x206a3e9f
shl eax, 2
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
inc esi
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], esi
call fcn.004629fc
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x18]
mov esi, dword [esi + eax]
mov ecx, esi
call fcn.00409380
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x10]
mov eax, dword [ecx]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 8]
mov edi, esi
imul edi, edi, 0x18
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x5c], eax
inc dword [eax]
lea eax, [esp + 0x2024a0]
add eax, edi
push eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x18], edi
call 0x69fdb9
test dh, cl
je 0x45fcde
mov eax, dword [esp + 0x10]
lea edi, [esp + edi + 0x2024a8]
mov dword [esp + 0x48], edi
cmp dword [edi], 0x10
jne 0x45fb70
cmp dword [esp + eax + 0xac], 0
jne 0x45fb70
mov eax, dword [ebp + 8]
push 0xc
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov eax, dword [ecx + eax + 4]
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.0040d5f8
test dh, cl
je 0x45fcc7
mov ecx, dword [esp + 0x20]
call fcn.0044b5b2
mov edx, dword [esp + 0x10]
lea ecx, [eax - 1]
shr ecx, 2
add dword [esp + 0x1c], ecx
lea eax, [ecx + 1]
imul eax, dword [esp + edx + 0xb0]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x78], eax
sub edx, ecx
mov dword [esp + 0x20], ecx
cmp edx, esi
jle 0x45fb1d
mov eax, edx
imul eax, eax, 0x18
lea ebx, [esp + 0x2024a0]
add ebx, eax
lea eax, [edx + ecx]
imul eax, eax, 0x18
sub edx, esi
lea eax, [esp + eax + 0x2024a0]
push 6
mov esi, ebx
mov edi, eax
pop ecx
sub ebx, 0x18
sub eax, 0x18
rep movsd dword es:[edi], dword [esi]
dec edx
jne 0x45fafb
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [edx + eax + 4]
cmp dword [eax + 0xc], 0xc
jne 0x45fb33
mov edx, dword [eax]
jmp 0x45fb35
xor edx, edx
mov edx, dword [edx + 8]
inc ecx
add ecx, esi
cmp esi, ecx
jge 0x45fb6d
mov ebx, dword [esp + 0x10]
sub ecx, esi
add esi, ecx
mov eax, dword [edx]
and dword [edi + 4], 0
mov dword [edi - 8], eax
mov dword [edi], 0x10
mov eax, dword [esp + ebx + 0xb0]
mov dword [edi + 8], eax
lea edx, [edx + 4]
lea edi, [edi + 0x18]
dec ecx
jne 0x45fb47
mov ebx, dword [esp + 0x2c]
dec esi
jmp 0x45fb7b
mov eax, dword [esp + eax + 0xb0]
add dword [esp + 0x78], eax
add dword [esp + 0x18], 8
lea ecx, [esp + 0x50]
call fcn.0040cb4b
mov eax, dword [esp + 0x30]
mov edi, dword [ebp + 8]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x7c]
jl 0x45f9ec
cmp byte [ebp + 0x10], 0
je 0x206a400e
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
call fcn.0044b58b
mov dword [esp + 0x70], eax
sub esp, 0x10
lea eax, [esp + 0x48]
mov ecx, esp
push eax
call fcn.0045f71e
push 4
pop eax
sub eax, dword [esp + 0x24]
push eax
push edi
lea eax, [esp + 0x88]
push eax
call fcn.0046083c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
push eax
call fcn.0041ed2c
test eax, eax
jne 0x45fc11
push 0xffffffffffffffff
push 0x67
mov ecx, ebx
call fcn.0044cc70
push 0
call dword [0x48d344]
push eax
call dword [0x48d1d8]
lea eax, [esi + 1]
push eax
xor edi, edi
inc edi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x88], esi
call fcn.0041c064
add esp, 0xc
cmp dword [esp + 0x80], edi
jne 0x45fc52
push 0
push edi
push 0
push dword [ebp + 0xc]
call fcn.00411ba4
add esp, 0x10
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00460423
xor esi, esi
cmp dword [esp + 0x7c], esi
jle 0x45fd79
mov eax, dword [esp + 0x24]
shl eax, 2
mov dword [esp + 0x14], eax
lea eax, [esi + 1]
push eax
push edi
push 0
push dword [ebp + 0xc]
mov dword [esp + 0x34], eax
call fcn.00411ba4
mov ebx, eax
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
imul eax, eax, 0x18
cmp dword [esp + eax + 0x2024a8], 0x10
jne 0x45fd58
mov eax, dword [ebp + 8]
push 0xc
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x18]
mov esi, dword [ecx + eax + 4]
mov ecx, esi
call fcn.0040d5f8
test dh, cl
je 0x46213d
push esi
mov ecx, ebx
call fcn.0040dcc2
jmp 0x45fd66
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00412c34
push 0
mov dword [esi + 0xc], 0x202444
push 5
jmp 0x45fcf1
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00412c34
xor edi, edi
inc edi
push 0
mov dword [esi + 0xc], edi
push edi
and dword [esi], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.0044cf60
lea ecx, [esp + 0x50]
call fcn.0040cb4b
jmp 0x69fd9c
push ebx
lea eax, [esp + eax + 0xa4]
push eax
call 0x20460423
mov esi, dword [esp + 0x24]
add dword [esp + 0x14], 8
cmp esi, dword [esp + 0x7c]
jl 0x45fc69
cmp byte [ebp + 0x10], 0
jne 0x45fd9c
mov eax, dword [ebp + 8]
push 4
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
call fcn.0040d5f8
test dh, cl
je 0x45fd9c
push dword [esp + 0x28]
call dword [0x48d188]
lea ecx, [esp + 0x38]
call fcn.0045f83a
lea ecx, [esp + 0x60]
call fcn.0040cb4b
pop edi
pop esi
xor eax, eax
inc ebp
mov esp, ebp
pop ebp
ret 0xc
or byte [esi - 1], dl
jne 0x46214e
mov esi, ecx
push dword [eax + 8]
push eax
push 1
call fcn.00462244
mov eax, dword [esi]
lea ecx, [esi + 4]
add byte [ebx + 0x44e8d06], cl
mov eax, dword [eax + 4]
add ecx, eax
call fcn.0040336d
cmp dword [eax + 0x14], 0
jne 0x46218f
push 0
mov ecx, esi
mov dword [esi + 0xfc], 0x202407
call fcn.0040e8e4
mov eax, dword [esi]
lea ecx, [esi + 4]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.0040336d
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0040dcc2
xor eax, eax
pop esi
pop ebp
ret 8