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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1a7c
call fcn.004713c0
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0x24], ebx
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [edi]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], esi
je 0x45f8f8
mov esi, 2
mov eax, dword [edi + 0x24]
push 0xa00
lea ecx, [esp + 0x48c]
push ebx
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], 2
mov dword [esp + 0xc4], 4
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
call fcn.0046efc0
push 0x100
lea edx, [esp + 0x158]
push ebx
push edx
call fcn.0046efc0
push 0xa00
lea eax, [esp + 0x10a4]
push ebx
push eax
call fcn.0046efc0
push 0x100
lea ecx, [esp + 0x3b0]
push ebx
push ecx
call fcn.0046efc0
mov eax, 1
push 0x100
lea edx, [esp + 0x2bc]
push ebx
push edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], eax
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], eax
mov dword [esp + 0x180], eax
call fcn.0046efc0
xor eax, eax
add esp, 0x3c
mov ecx, eax
cmp esi, ebx
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
jle 0x45fafb
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0xc]
mov eax, ecx
sub eax, esi
mov ebx, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], edx
jmp 0x45fab9
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x45fac2
lea ecx, [eax + ebx]
jmp 0x45fac4
xor ecx, ecx
mov eax, dword [ebx]
lea edx, [eax + 0x53c]
push edx
lea edx, [eax + 0x364]
push edx
add eax, 0x2e4
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
call fcn.00465290
add esp, 0x14
add ebx, 4
sub dword [esp + 0xc], 1
jne 0x45fab2
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp dword [ebp + 0x24], ebx
je 0x45fbb0
cmp dword [ebp + 0x28], ebx
je 0x45fbb0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [eax + 0x2e4]
push edx
add eax, 0x364
push eax
lea eax, [ecx + 0x2e4]
push eax
add ecx, 0x364
push ecx
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.0045df80
mov edx, dword [ebp + 0x28]
mov eax, dword [esi]
mov ebx, dword [ebp + 0xc]
push edx
lea ecx, [eax + 0x364]
push ebx
push ecx
add eax, 0x2e4
push eax
call fcn.004657e0
add esp, 0x24
lea eax, [ebx + 8]
mov ecx, 0x80
lea ecx, [ecx]
fld dword [eax - 8]
add eax, 0x20
sub ecx, 1
fchs
fstp dword [eax - 0x28]
fld dword [eax - 0x24]
fchs
fstp dword [eax - 0x24]
fld dword [eax - 0x20]
fchs
fstp dword [eax - 0x20]
fld dword [eax - 0x1c]
fchs
fstp dword [eax - 0x1c]
fld dword [eax - 0x18]
fchs
fstp dword [eax - 0x18]
fld dword [eax - 0x14]
fchs
fstp dword [eax - 0x14]
fld dword [eax - 0x10]
fchs
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fchs
fstp dword [eax - 0xc]
jne 0x45fb60
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x45fc71
lea edx, [esp + 0x38]
mov dword [esp + 0x10], edx
mov eax, dword [esi + ebx*4]
lea ecx, [eax + 0x364]
push ecx
mov ecx, dword [eax + 0x524]
lea edx, [eax + 0x2e4]
push edx
lea edx, [eax + ecx*4 + 0x3e4]
push edx
call fcn.00465510
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0x1c]
movzx ecx, byte [ecx + edx]
mov eax, dword [esi + ebx*4]
push ecx
lea edx, [eax + 0x364]
push edx
lea ecx, [eax + 0x2e4]
push ecx
add eax, 0x6c8
push eax
call fcn.0045e680
mov eax, dword [esi + ebx*4]
mov edx, dword [eax + 0x538]
mov ecx, dword [esp + 0x2c]
push edx
push ecx
push eax
add eax, 0x3e4
push eax
call fcn.00461e40
mov eax, dword [esi + ebx*4]
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0x528]
push edx
mov edx, dword [eax + 0x538]
push ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [edi + 0x1c]
push ecx
push edx
push eax
add eax, 0x3e4
push eax
call fcn.00461660
add dword [esp + 0x58], 8
add ebx, 1
add esp, 0x48
cmp ebx, dword [esp + 0x24]
jl 0x45fbc4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x14], 2
jne 0x45fca7
cmp dword [esp + 0x3c], 0
je 0x45fc8c
cmp dword [esp + 0x44], 0
je 0x45fca3
cmp ecx, eax
jge 0x45fca3
jmp 0x45fc9d
cmp dword [esp + 0x44], 0
je 0x45fc99
mov dword [esp + 0x38], ecx
jmp 0x45fca7
cmp ecx, eax
jle 0x45fca3
mov eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov eax, dword [esi]
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [eax + 0x2dc]
push ecx
add eax, 0x558
push eax
call fcn.00466770
mov ebx, eax
mov eax, dword [esi]
lea edx, [eax + 0x618]
mov dword [eax + 0x18bc], edx
mov eax, dword [esp + 0x24]
add esp, 0x10
sub eax, 1
mov dword [esp + 0x18], ebx
je 0x45fcf6
sub eax, 1
je 0x45fd56
sub eax, 1
jne 0x45fdeb
mov eax, dword [esi + 4]
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x44]
push ecx
lea edx, [eax + 0x2dc]
push edx
add eax, 0x558
push eax
call fcn.00466770
mov ecx, eax
mov eax, dword [esi + 4]
lea edx, [eax + 0x618]
mov dword [eax + 0x18bc], edx
mov eax, dword [ebx]
add esp, 0x10
cmp eax, dword [ecx]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], eax
jne 0x45fde3
lea ecx, [eax + 1]
xor edx, edx
test ecx, ecx
jle 0x45fd9a
mov eax, dword [esp + 0x1c]
sub eax, ebx
lea ecx, [ebx + 4]
mov dword [esp + 0x20], eax
jmp 0x45fd74
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add eax, 0x618
mov dword [esp + 0x1c], ebx
mov dword [ecx + 0x18bc], eax
jmp 0x45fdeb
mov eax, dword [esp + 0x20]
mov ebx, dword [ecx]
cmp ebx, dword [eax + ecx]
mov eax, dword [esp + 0xc]
jne 0x45fd8e
add edx, 1
lea ebx, [eax + 1]
add ecx, 4
cmp edx, ebx
jl 0x45fd70
jmp 0x45fd96
mov dword [esp + 0x14], 1
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0xc], 0
jle 0x45fdd7
mov edx, dword [esp + 0x1c]
lea ecx, [ebx + 0x1c]
sub edx, ebx
nop
mov ebx, dword [ecx]
cmp ebx, dword [ecx + edx]
jne 0x45fdcb
mov ebx, dword [esp + 0xc]
add ebx, 1
add ecx, 4
cmp ebx, eax
mov dword [esp + 0xc], ebx
jl 0x45fdb0
jmp 0x45fdd3
mov dword [esp + 0x14], 1
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x30]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x30]
je 0x45fdeb
mov dword [esp + 0x14], 1
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x45ff4e
lea edx, [esp + 0x288]
lea eax, [esp + 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
jmp 0x45fe14
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov ecx, dword [esi + ebx*4]
mov dword [ecx + 0x2dc], edx
mov edx, dword [eax + 4]
mov ecx, dword [esi + ebx*4]
mov eax, dword [esp + ebx*4 + 0x18]
mov dword [ecx + 0x2e0], edx
mov eax, dword [eax]
test eax, eax
mov ecx, dword [esi + ebx*4]
mov dword [esp + ebx*4 + 0x48], eax
mov dword [ecx + 0x191c], eax
jle 0x45fe76
mov edx, dword [esp + ebx*4 + 0x48]
mov eax, 0x1920
mov dword [esp + 0x28], edx
nop
mov ecx, dword [esp + ebx*4 + 0x18]
cmp dword [ecx + eax - 0x1904], 1
jne 0x45fe63
mov ecx, dword [edi + 8]
jmp 0x45fe66
mov ecx, dword [edi + 4]
mov edx, dword [esi + ebx*4]
mov dword [eax + edx], ecx
add eax, 4
sub dword [esp + 0x28], 1
jne 0x45fe50
mov eax, dword [esi + ebx*4]
mov ecx, dword [eax + 0x18bc]
cmp dword [ecx], 0
jne 0x45fea3
cmp dword [esp + ebx*4 + 0x48], 1
jne 0x45fea3
cmp dword [eax + 0x19e4], 0
je 0x45fecb
push 0
lea edx, [eax + 0x184]
push edx
lea ecx, [eax + 0x2c]
push ecx
jmp 0x45febd
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 0x19e4]
je 0x45fecb
push ecx
lea ecx, [eax + 0x184]
push ecx
lea edx, [eax + 0x2c]
push edx
add eax, 0x12c4
push eax
call fcn.00462010
add esp, 0x10
mov eax, dword [esi + ebx*4]
mov ecx, dword [eax + 0x1350]
mov edx, dword [edi + 8]
push ecx
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + ebx*4 + 0x24]
push edx
push ecx
lea ecx, [eax + 0x4e4]
push ecx
lea edx, [eax + 0x18cc]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [eax + 0x18c8]
push ecx
push edx
lea ecx, [eax + 0x12d0]
push ecx
add eax, 0x6c8
push eax
call fcn.0045e940
mov eax, dword [esi + ebx*4]
mov edx, dword [eax + 0x12d0]
add dword [esp + 0x3c], 8
add dword [esp + 0x38], 0x80
mov dword [eax + 0x12cc], edx
mov eax, dword [esi + ebx*4]
mov ecx, dword [eax + 0xb24]
add ebx, 1
add esp, 0x2c
cmp ebx, dword [esp + 0x24]
mov dword [eax + 0x19dc], ecx
jl 0x45fe10
mov eax, dword [esp + 0x14]
cmp eax, 3
ja case.default.0x45ff5b
jmp dword [eax*4 + 0x460fe8]
mov eax, dword [esi]
push 0
push 0
push eax
push edi
push 0
lea edx, [esp + 0x49c]
xor ebx, ebx
jmp 0x460045
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push 0
push 0
push eax
push edi
push 0
lea edx, [esp + 0x49c]
push edx
push ecx
add eax, 0x3e4
push eax
xor ebx, ebx
call fcn.0045f170
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x3c]
push ebx
push ebx
push eax
push edi
push ebx
lea edx, [esp + 0x9bc]
push edx
push ecx
add eax, 0x3e4
push eax
call fcn.0045f170
add esp, 0x40
jmp 0x460059
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x98c]
lea edx, [esp + 0x48c]
jmp 0x460035
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push 0
push 0
push eax
push edi
push 0
lea edx, [esp + 0x49c]
push edx
push ecx
add eax, 0x3e4
push eax
xor ebx, ebx
call fcn.0045f170
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x3c]
push ebx
push ebx
push eax
push edi
push ebx
lea edx, [esp + 0x9bc]
push edx
push ecx
add eax, 0x3e4
push eax
call fcn.0045f170
lea edx, [esp + 0x6c]
add esp, 0x40
push edx
lea ecx, [esp + 0x158c]
lea edx, [esp + 0x108c]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
push 2
push eax
push edi
add ebx, 0x3e4
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
add eax, 0x3e4
push eax
call fcn.0045f170
add esp, 0x20
mov edx, dword [esp + 0x14]
jmp dword [edx*4 + 0x460ff8]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
mov edx, 1
cmp ecx, edx
jne 0x460db2
cmp dword [eax + 0x1934], edx
je 0x460de1
mov dword [eax + 0x148], 0
jmp 0x460de7
cmp dword [eax + 0x1934], edx
je 0x460dd8
mov edi, dword [esi + 4]
cmp dword [edi + 0x1934], edx
je 0x460dd8
xor edx, edx
mov dword [eax + 0x148], edx
mov eax, dword [esi + 4]
mov dword [eax + 0x148], edx
jmp 0x460de7
add dword [eax + 0x148], edx
mov eax, dword [esi + 4]
add dword [eax + 0x148], edx
test ecx, ecx
jle 0x460f0b
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14c]
lea edx, [esp + 0x48]
sub edx, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], 0
mov ecx, esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], eax
jmp 0x460e24
mov edx, dword [esp + 0x50]
cmp dword [edx + ecx], 0
mov dword [esp + 0xc], 0
jle 0x460eb9
mov edx, dword [edx + ecx]
mov eax, dword [ecx]
mov edi, 0x1920
mov dword [esp + 0x10], 0x1354
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edx
cmp dword [eax + edi], 0
mov dword [esp + 0x2c], 0
jle 0x460ea3
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
add edx, ebx
lea edx, [esp + edx*4 + 0x488]
jmp 0x460e79
mov edi, dword [esp + 0x18]
mov ebx, dword [edx]
add dword [esp + 0xc], 1
mov dword [edi + eax], ebx
mov ebx, dword [esp + 0x2c]
mov eax, dword [ecx]
add edi, 4
add ebx, 1
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x28]
add edx, 4
cmp ebx, dword [eax + edi]
mov dword [esp + 0x2c], ebx
jl 0x460e75
add dword [esp + 0x10], 0x100
add edi, 4
sub dword [esp + 0x34], 1
mov dword [esp + 0x28], edi
jne 0x460e50
mov edx, dword [esp + 0x30]
mov eax, 0x1960
mov ebx, dword [edx - 4]
mov edi, dword [ecx]
mov dword [edi + eax - 4], ebx
mov ebx, dword [edx]
mov edi, dword [ecx]
mov dword [eax + edi], ebx
mov ebx, dword [edx + 4]
mov edi, dword [ecx]
mov dword [edi + eax + 4], ebx
mov ebx, dword [edx + 8]
mov edi, dword [ecx]
mov dword [edi + eax + 8], ebx
add eax, 0x10
add edx, 0x10
cmp eax, 0x19e0
jl 0x460ec2
add dword [esp + 0x14], 0x140
add ecx, 4
sub dword [esp + 0x20], 1
mov dword [esp + 0x30], edx
jne 0x460e20
mov ebx, dword [esp + 0x24]
cmp ebx, 2
mov edi, dword [ebp + 0x18]
jne 0x460f3a
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
mov eax, dword [ebp + 0x1c]
add ecx, 0x12c4
push ecx
add edx, 0x12c4
push edx
push eax
push edi
call fcn.0046af60
jmp 0x460f54
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x24]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
add eax, 0x12c4
push eax
push ecx
push edi
call fcn.0046aef0
add esp, 0x14
test ebx, ebx
jle 0x460fd8
mov dword [esp + 0x20], ebx
mov edx, dword [esi]
xor ebx, ebx
cmp dword [edx + 0x524], ebx
jle 0x460fbe
mov edi, 0x3e4
mov ecx, dword [esi]
mov eax, dword [ecx + edi]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x528]
cdq
sub eax, edx
sar eax, 1
add eax, ebx
mov edx, dword [ecx + eax*4 + 0x3e4]
mov dword [ecx + edi], edx
mov ecx, dword [esi]
mov eax, dword [ecx + 0x528]
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ebx
mov dword [ecx + eax*4 + 0x3e4], edx
mov eax, dword [esi]
add ebx, 1
add edi, 4
cmp ebx, dword [eax + 0x524]
jl 0x460f74
add esi, 4
sub dword [esp + 0x20], 1
jne 0x460f63
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x40]
mov dword [eax + 0x44], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x40]
mov dword [edi + 0x44], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret