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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7c51
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x522d80]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x6c]
call dword [0x4cf770]
xor esi, esi
lea ecx, [esp + 0x84]
mov dword [esp + 0x108], esi
call dword [0x4cf770]
or eax, 0xffffffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x30]
mov byte [esp + 0x108], 2
cmp edi, dword [eax + 0x34]
jbe 0x420e87
call fcn.00497123
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x24]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x24], eax
cmp dword [ecx + 0x30], eax
jbe 0x420ea9
call fcn.00497123
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x420eb7
cmp eax, esi
je 0x420ebc
call fcn.00497123
cmp dword [esp + 0x24], edi
je 0x42172e
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x8b4], 1
jne 0x4213c9
test esi, esi
jne 0x421027
call fcn.00497123
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x420eef
call fcn.00497123
mov eax, dword [edi]
mov ecx, dword [eax + 0xb8]
sub ecx, dword [eax + 0xb4]
add eax, 0xa8
test ecx, 0xfffffffc
je 0x421709
test esi, esi
jne 0x42102e
call fcn.00497123
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x420f27
call fcn.00497123
mov edx, dword [edi]
add edx, 0xa8
push edx
lea ecx, [esp + 0x70]
call dword [0x4cf688]
test esi, esi
jne 0x421035
call fcn.00497123
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x420f53
call fcn.00497123
mov eax, dword [edi]
add eax, 0xc0
push eax
lea ecx, [esp + 0x88]
call dword [0x4cf688]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x78]
sar eax, 2
mov dword [esp + 0x24], eax
test esi, esi
jne 0x42103c
call fcn.00497123
cmp edi, dword [esi + 0x10]
jb 0x420f8e
call fcn.00497123
mov edx, dword [ebx + 0x11c]
sub edx, dword [ebx + 0x118]
mov ecx, dword [edi]
mov esi, dword [ecx + 4]
sar edx, 2
cmp esi, edx
jb 0x420fab
call fcn.00497123
cmp dword [esp + 0x24], 0
mov eax, dword [ebx + 0x118]
mov esi, dword [eax + esi*4]
mov dword [esp + 0x28], 0
jle 0x42138b
mov edi, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x70]
call dword [0x4cf6f0]
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
push edi
lea ecx, [esp + 0x88]
call dword [0x4cf6f0]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call fcn.0045d0f0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x20], ecx
cmp eax, ecx
je 0x421043
cmp eax, 0xffffffff
je 0x421043
mov dword [esi + 0xb4], 1
mov dword [esi + 0xa8], eax
jmp 0x421057
mov eax, dword [esi]
jmp 0x420ee5
mov eax, dword [esi]
jmp 0x420f1d
mov eax, dword [esi]
jmp 0x420f49
mov esi, dword [esi]
jmp 0x420f84
mov dword [esi + 0xb4], 0
mov dword [esi + 0xa8], 0xffffffff
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esi + 0xa4], ecx
push edx
lea ecx, [esi + 0x3c]
call fcn.0041dd90
cmp dword [esi + 0xa4], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jne 0x421096
mov dword [esp + 0x14], 0xffffffff
jmp 0x4210ab
lea eax, [esi + 0xa4]
push eax
lea ecx, [esi + 0x5c]
call fcn.004122b0
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x298], 0
jne 0x421118
push 0x60
call fcn.00485f87
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x108], 3
test eax, eax
je 0x4210d8
mov ecx, eax
call dword [0x4cf6a0]
jmp 0x4210da
xor eax, eax
mov ecx, dword [ebp + 0xc]
push 0
push 0
push edi
mov byte [esp + 0x114], 2
mov dword [esi + 0x298], eax
call fcn.00412b00
mov ecx, dword [ebp + 0xc]
push 0
push edi
call fcn.00413ae0
push eax
lea eax, [esi + 0x298]
push eax
mov ecx, ebx
call fcn.00419250
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00413910
cmp dword [esi + 0x28c], 0
jne 0x42125a
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x1c], 0
push 0xffffffffffffffff
je 0x421150
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
push 0
push 1
push edx
mov edx, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
push edx
lea eax, [esp + 0xbc]
push eax
jmp 0x42116e
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 1
push ecx
mov ecx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x40]
push eax
push edi
push ecx
lea edx, [esp + 0xbc]
push edx
mov ecx, ebx
call fcn.0041fee0
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xac], 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
test eax, eax
je 0x4211d2
push eax
call fcn.00498be9
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4213ba
call fcn.00497123
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x4211f3
call fcn.00497123
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push edi
mov dword [eax + 0xf8], 1
call fcn.00412b00
mov ecx, dword [ebp + 0xc]
push 0
push edi
call fcn.00413ae0
push 0
mov dword [esp + 0x48], eax
push 0x15
lea eax, [esp + 0x3c]
push eax
push esi
mov ecx, ebx
call fcn.00420a50
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00413910
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x68
call dword [0x4cf6bc]
fld1
mov ecx, dword [eax]
fstp dword [ecx + 0x17c]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x28c]
mov ecx, dword [ebx + 0x189c]
push edx
push 3
push eax
call dword [0x4cf5f8]
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x18
call dword [0x4cf6d0]
mov ecx, dword [esi + 0x298]
mov dword [eax], ecx
fld dword [ebx + 0x18b8]
fisub dword [esp + 0x14]
mov eax, dword [ebx + 0x189c]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x28c]
sub esp, 8
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 4]
fld dword [eax + 0x26c]
fstp dword [esp]
push 0
push edx
call dword [0x4cf6b8]
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push eax
mov eax, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, ebx
call fcn.0041fee0
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x421302
push eax
call fcn.00498be9
add esp, 4
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x1c], 0
je 0x421330
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x68
mov dword [esi + 0xb8], 1
call dword [0x4cf6bc]
fld1
mov eax, dword [eax]
fstp dword [eax + 0x17c]
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x68
call dword [0x4cf6bc]
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x28c]
mov dword [ecx + 0x80], edx
test eax, eax
jne 0x4213c1
call fcn.00497123
xor eax, eax
mov edi, dword [esp + 0x1c]
cmp edi, dword [eax + 0x10]
jb 0x42136c
call fcn.00497123
mov eax, dword [edi]
mov dword [eax + 0xe0], 3
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
jl 0x420fc7
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4213c5
call fcn.00497123
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x4213a8
call fcn.00497123
add dword [esp + 0x1c], 4
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x420e95
mov eax, dword [eax]
jmp 0x4211e5
mov eax, dword [eax]
jmp 0x42135e
mov eax, dword [eax]
jmp 0x42139a
test esi, esi
jne 0x421501
call fcn.00497123
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4213e2
call fcn.00497123
mov edx, dword [edi]
cmp dword [edx + 0xe0], 3
jne 0x421709
test esi, esi
jne 0x421508
call fcn.00497123
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x42140a
call fcn.00497123
mov eax, dword [edi]
add eax, 0xa8
push eax
lea ecx, [esp + 0x70]
call dword [0x4cf688]
test esi, esi
jne 0x42150f
call fcn.00497123
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x421435
call fcn.00497123
mov ecx, dword [edi]
add ecx, 0xc0
push ecx
lea ecx, [esp + 0x88]
call dword [0x4cf688]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x78]
sar eax, 2
mov dword [esp + 0x24], eax
test esi, esi
jne 0x421516
call fcn.00497123
cmp edi, dword [esi + 0x10]
jb 0x421471
call fcn.00497123
mov eax, dword [ebx + 0x11c]
sub eax, dword [ebx + 0x118]
mov edx, dword [edi]
mov esi, dword [edx + 4]
sar eax, 2
cmp esi, eax
jb 0x42148e
call fcn.00497123
cmp dword [esp + 0x24], 0
mov ecx, dword [ebx + 0x118]
mov esi, dword [ecx + esi*4]
mov dword [esp + 0x28], 0
jle 0x4216d8
lea ebx, [ebx]
mov edi, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x70]
call dword [0x4cf6f0]
push edi
lea ecx, [esp + 0x88]
call dword [0x4cf6f0]
mov edi, dword [eax]
push 1
mov ecx, esi
call fcn.00419bd0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x20], edi
cmp eax, edi
je 0x42151d
cmp eax, 0xffffffff
je 0x42151d
mov dword [esi + 0xb4], 1
mov dword [esi + 0xa8], eax
jmp 0x421531
mov eax, dword [esi]
jmp 0x4213d8
mov eax, dword [esi]
jmp 0x421400
mov eax, dword [esi]
jmp 0x42142b
mov esi, dword [esi]
jmp 0x421467
mov dword [esi + 0xb4], 0
mov dword [esi + 0xa8], 0xffffffff
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x3c]
mov dword [esi + 0xa4], edi
call fcn.0041dd90
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xa4]
push edx
mov ecx, ebx
call fcn.0041b6a0
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0xac], 0
test eax, eax
je 0x4215c5
push eax
call fcn.00498be9
add esp, 4
cmp dword [esi + 0xd4], 1
jne 0x4215e9
mov ecx, dword [ebp + 0xc]
push 0
push 0
push esi
push ecx
mov ecx, ebx
call fcn.0041e9b0
lea ecx, [esi + 0xd8]
call fcn.0041dfc0
mov eax, dword [esi + 0x28c]
mov dword [esi + 0xd4], 0
test eax, eax
je 0x4216b1
mov ecx, dword [ebx + 0x189c]
push 3
push eax
call dword [0x4cf5f4]
mov edx, dword [esi]
push edx
push 1
mov ecx, esi
call fcn.00419bd0
push eax
lea eax, [esp + 0xd4]
push eax
mov ecx, ebx
call fcn.0041b6a0
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x34], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0xdc], 0
test eax, eax
je 0x421689
push eax
call fcn.00498be9
add esp, 4
xor eax, eax
mov dword [esp + 0xf4], 0x40
mov dword [esp + 0xf8], eax
cmp edi, dword [esi]
jne 0x4216b3
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebx
call fcn.0041cfb0
xor eax, eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0x1a8], eax
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
jl 0x4214b0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x421726
call fcn.00497123
xor eax, eax
mov esi, dword [esp + 0x1c]
cmp esi, dword [eax + 0x10]
jb 0x4216f5
call fcn.00497123
mov edx, dword [esi]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [edx + 0xe0], 1
test esi, esi
jne 0x42172a
call fcn.00497123
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x42171e
call fcn.00497123
add edi, 4
jmp 0x420e91
mov eax, dword [eax]
jmp 0x4216e7
mov eax, dword [esi]
jmp 0x421714
lea ecx, [esp + 0x84]
mov byte [esp + 0x108], 0
call dword [0x4cf784]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x108], 0xffffffff
call dword [0x4cf784]
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc