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

Disassembly:
push 0xffffffffffffffff
push 0x544f4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00432720
mov edi, eax
mov eax, dword [esi + 0xaa0]
cmp eax, ebp
je 0x42be98
push eax
call dword [0x5530ec]
mov ecx, dword [esi + 0x20]
mov ebx, dword [0x553d3c]
lea eax, [esp + 0x74]
mov dword [esi + 0xaa0], ebp
push eax
push ecx
call ebx
mov ecx, esi
call fcn.0042be20
test eax, eax
je 0x42bed9
cmp edi, ebp
je 0x42bed9
mov ecx, edi
call fcn.004e1480
cmp eax, 3
jne 0x42bed9
mov eax, 0x5a
mov dword [esi + 0xcfc], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x74]
sub eax, ecx
sub edx, edi
mov dword [esi + 0x154], eax
mov eax, dword [esi + 0x108]
cmp eax, ebp
mov dword [esi + 0x150], edx
je 0x42bf16
cmp dword [esp + 0xa4], ebp
jne 0x42bf16
mov ecx, esi
call fcn.0043b920
mov eax, dword [esi + 0x5b0]
mov ebp, dword [0x553db8]
test eax, eax
je 0x42bf76
push 0x3e9
mov ecx, esi
call fcn.0053ff18
mov edi, eax
lea ecx, [esp + 0x84]
push ecx
mov edx, dword [edi + 0x20]
push edx
call ebp
mov ecx, esi
call fcn.00447e00
mov edx, dword [esi + 0x154]
mov ecx, dword [esi + 0x150]
push 0x41c
push edx
sub ecx, eax
push eax
push 0
mov dword [esi + 0x150], ecx
push ecx
push 0
mov ecx, edi
mov dword [esi + 0x17c], eax
call fcn.005400fe
push 0x3e8
mov ecx, esi
call fcn.0053ff18
mov ecx, dword [esi + 0x154]
mov edx, dword [esi + 0x150]
push 0x41c
push ecx
push edx
push 0
push 0
push 0
mov ecx, eax
mov dword [esi + 0x158], eax
call fcn.005400fe
mov eax, dword [esi + 0x158]
lea ecx, [esi + 0x15c]
push ecx
mov edx, dword [eax + 0x20]
push edx
call ebx
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x16c]
push edi
push eax
call ebp
mov ebp, dword [esi + 0x174]
mov ecx, dword [esi + 0x60]
dec ebp
mov edx, 1
mov dword [esi + 0x174], ebp
mov dword [esi + 0x10c], edx
mov ebx, dword [ecx + 0x970]
mov eax, ebp
cmp ebx, edx
jle 0x42c08f
mov edx, dword [esi + 0x170]
add edx, 0xa
push edx
mov edx, dword [edi]
sub eax, edx
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
call fcn.00456040
mov ebx, 1
mov edx, dword [edi]
sub ebx, eax
mov eax, dword [esi + 0x170]
add eax, 0xa
mov ecx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x174]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
call fcn.00456040
add eax, ebx
cmp eax, 1
mov dword [esi + 0x10c], eax
jge 0x42c057
mov dword [esi + 0x10c], 1
mov edi, dword [esi + 0x10c]
cmp edi, 1
jle 0x42c08f
mov ecx, dword [esi + 0xf0]
mov eax, ecx
cdq
idiv edi
test edx, edx
je 0x42c079
add edx, ecx
mov dword [esi + 0xf0], edx
dec edi
mov eax, dword [esi + 0x150]
imul edi, dword [esi + 0x17c]
sub eax, edi
mov dword [esi + 0x150], eax
mov eax, dword [esi + 0x100]
test eax, eax
je 0x42c0a3
mov eax, dword [esi + 0x144]
test eax, eax
jne 0x42c0d7
mov ecx, dword [esi + 0xf4]
mov dword [esi + 0x104], ecx
mov ecx, dword [esi + 0x10c]
cmp ecx, 1
jle 0x42c0cb
mov eax, dword [esi + 0xf0]
cdq
idiv ecx
mov dword [esi + 0x100], eax
jmp 0x42c0d7
mov edx, dword [esi + 0xf0]
mov dword [esi + 0x100], edx
fild dword [esi + 0x1b4]
mov edi, dword [esi + 0x1b0]
mov eax, dword [esi + 0xf0]
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0x150]
fmul qword [esi + 0x1c0]
sub ecx, eax
mov dword [esp + 0x2c], eax
sub ecx, 2
fidiv dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fstp qword [esp + 0x48]
fild dword [esp + 0x14]
fidiv dword [esp + 0x2c]
fadd qword [0x554618]
call fcn.00540a50
mov edx, dword [esi + 0x154]
mov ebx, dword [esp + 0x28]
mov ebp, eax
mov eax, dword [esi + 0xf4]
sub edx, eax
mov dword [esp + 0x2c], eax
sub edx, ebx
mov dword [esp + 0x40], ebp
sub edx, 2
mov dword [esi + 0xf8], ebp
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fidiv dword [esp + 0x2c]
fadd qword [0x554618]
call fcn.00540a50
mov ebx, eax
cmp edi, 0x400
mov dword [esp + 0x3c], ebx
jg 0x42c179
mov ecx, dword [esi + 0x64]
call fcn.0046d770
test eax, eax
je 0x42c18f
mov eax, dword [esi + 0x1b0]
mov ecx, dword [esi + 0xf8]
cmp ecx, eax
jle 0x42c18f
mov dword [esi + 0xf8], eax
fild dword [esi + 0xf8]
fmul qword [esp + 0x48]
fadd qword [0x554618]
call fcn.00540a50
mov dword [esi + 0xfc], eax
inc eax
imul eax, dword [esi + 0xf4]
cmp eax, dword [esi + 0x154]
jle 0x42c216
mov eax, dword [esi + 0x1b4]
mov dword [esi + 0xfc], ebx
cmp eax, 0x400
jg 0x42c1d9
mov ecx, dword [esi + 0x64]
call fcn.0046d770
test eax, eax
je 0x42c1ef
mov eax, dword [esi + 0x1b4]
mov ecx, dword [esi + 0xfc]
cmp ecx, eax
jle 0x42c1ef
mov dword [esi + 0xfc], eax
mov ecx, dword [esi + 0x64]
call fcn.0046d770
test eax, eax
jne 0x42c216
fild dword [esi + 0xfc]
fdiv qword [esp + 0x48]
fadd qword [0x554618]
call fcn.00540a50
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0x13c]
xor edi, edi
sub eax, edi
je 0x42c24d
dec eax
je 0x42c236
dec eax
jne 0x42c257
sub ebp, dword [esi + 0xf8]
mov dword [esi + 0x11c], ebp
jmp 0x42c257
mov ecx, dword [esi + 0xf8]
mov eax, ebp
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x11c], eax
jmp 0x42c257
mov dword [esi + 0x11c], 1
mov ebp, dword [esi + 0xfc]
mov eax, ebx
sub eax, ebp
mov ecx, dword [esi + 0x64]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x120], eax
call fcn.0046d770
test eax, eax
je 0x42c311
mov eax, dword [esi + 0x1b0]
mov ecx, dword [esi + 0xf8]
cmp eax, ecx
jle 0x42c296
mov dword [esi + 0x11c], 1
mov ecx, dword [esi + 0x1b4]
mov eax, dword [esi + 0xfc]
cmp ecx, eax
jle 0x42c2b0
mov dword [esi + 0x120], 1
mov ecx, dword [esi + 0x60]
call fcn.0045c050
test eax, eax
je 0x42c311
push 1
push 1
mov ecx, esi
call fcn.0042fb50
test eax, eax
je 0x42c311
mov ecx, dword [esi + 0x258]
mov eax, dword [esi + 0x1b0]
cmp ecx, eax
jge 0x42c2ea
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x20], eax
jmp 0x42c2ee
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x25c]
mov eax, dword [esi + 0x1b4]
cmp ecx, eax
jge 0x42c30d
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x24], eax
jmp 0x42c311
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x5b0]
mov edx, dword [esi + 0xd0]
push eax
push 2
push edx
call dword [0x553ccc]
mov ecx, esi
call fcn.0043be10
mov al, byte [esi + 0x12d]
test al, al
jne 0x42c3bd
mov al, byte [esi + 0x12c]
test al, al
je 0x42c389
mov eax, dword [esi + 0x128]
xor ebp, ebp
cmp eax, edi
jbe 0x42c3bd
mov eax, dword [esi + 0x124]
mov eax, dword [eax + ebp*4]
test eax, eax
je 0x42c37c
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.004bfb90
push ecx
push 0x20
push eax
call fcn.00540a56
push edi
call fcn.0053feee
add esp, 4
mov eax, dword [esi + 0x128]
inc ebp
cmp ebp, eax
jb 0x42c352
jmp 0x42c3bd
mov eax, dword [esi + 0x128]
xor ebp, ebp
cmp eax, edi
jbe 0x42c3bd
mov edx, dword [esi + 0x124]
mov edi, dword [edx + ebp*4]
test edi, edi
je 0x42c3b2
mov ecx, edi
call fcn.004bfb90
push edi
call fcn.0053feee
add esp, 4
mov eax, dword [esi + 0x128]
inc ebp
cmp ebp, eax
jb 0x42c395
mov eax, dword [esi + 0x124]
mov ebx, dword [0x553b00]
push eax
call ebx
xor ebp, ebp
add esp, 4
mov dword [esi + 0x124], ebp
mov dword [esi + 0x128], ebp
mov al, byte [esi + 0x139]
test al, al
jne 0x42c45e
mov al, byte [esi + 0x138]
test al, al
mov eax, dword [esi + 0x134]
je 0x42c432
cmp eax, ebp
jbe 0x42c45e
mov ecx, dword [esi + 0x130]
mov eax, dword [ecx + ebp*4]
test eax, eax
je 0x42c425
mov edx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.004bfb90
push edx
push 0x20
push eax
call fcn.00540a56
push edi
call fcn.0053feee
add esp, 4
mov eax, dword [esi + 0x134]
inc ebp
cmp ebp, eax
jb 0x42c3fb
jmp 0x42c45e
cmp eax, ebp
jbe 0x42c45e
mov eax, dword [esi + 0x130]
mov edi, dword [eax + ebp*4]
test edi, edi
je 0x42c453
mov ecx, edi
call fcn.004bfb90
push edi
call fcn.0053feee
add esp, 4
mov eax, dword [esi + 0x134]
inc ebp
cmp ebp, eax
jb 0x42c436
mov ecx, dword [esi + 0x130]
push ecx
call ebx
xor eax, eax
add esp, 4
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], eax
mov edi, dword [esi + 0x10c]
cmp edi, 1
jne 0x42c6d7
mov ecx, dword [esi + 0xf4]
mov dword [esp + 0x10], eax
cmp ecx, eax
mov dword [esp + 0x34], eax
jle 0x42c9a7
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xf0]
add eax, edx
mov edx, dword [esi + 0x120]
mov dword [esp + 0x30], 0
add eax, edx
test ecx, ecx
mov dword [esp + 0x38], eax
jle 0x42c6a6
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + ebp - 1]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x4c], eax
xor ebx, ebx
push 0x20
call fcn.0053ff1e
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0x9c], 0
je 0x42c515
mov ecx, eax
call fcn.0040e8b0
mov edi, eax
jmp 0x42c517
xor edi, edi
mov edx, dword [esp + 0x40]
mov ecx, edi
mov dword [esp + 0x9c], 0xffffffff
mov dword [ecx], ebx
lea eax, [ebx + edx]
mov edx, dword [esp + 0x70]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x14], eax
mov dword [ecx + 0xc], edx
mov ecx, dword [esi + 0x170]
add ebp, ecx
mov ecx, ebx
push ebp
mov ebp, dword [esi + 0x16c]
add ecx, ebp
push ecx
mov ecx, dword [esi + 0x60]
call fcn.00456040
mov dword [edi + 0x10], eax
mov edx, dword [esi + 0x134]
mov ecx, dword [esi + 0x130]
lea eax, [edx*4 + 4]
push eax
push ecx
call dword [0x553b1c]
mov edx, dword [esi + 0x134]
mov dword [esi + 0x130], eax
push 0x20
mov dword [eax + edx*4], edi
mov ecx, dword [esi + 0x134]
inc ecx
mov dword [esi + 0x134], ecx
mov edi, dword [esi + 0x11c]
add edi, ebx
call fcn.0053ff1e
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0x9c], 1
je 0x42c5c7
mov ecx, eax
call fcn.0040e8b0
mov ebp, eax
jmp 0x42c5c9
xor ebp, ebp
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0xf8]
mov eax, edi
mov dword [esp + 0x9c], 0xffffffff
sub eax, edx
mov edx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esi + 0xfc]
sub ecx, edx
mov edx, dword [esp + 0x38]
lea ecx, [ecx + edx - 1]
mov edx, ebp
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
add ecx, edi
mov dword [edx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x14], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 0xc], eax
mov edx, dword [esi + 0x170]
add edx, ecx
mov ecx, dword [esi + 0x60]
push edx
mov edx, dword [esi + 0x16c]
add edi, edx
push edi
call fcn.00456040
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x128]
mov edx, dword [esi + 0x124]
lea ecx, [eax*4 + 4]
push ecx
push edx
call dword [0x553b1c]
mov ecx, dword [esi + 0x128]
mov edx, dword [esp + 0x48]
mov dword [esi + 0x124], eax
add esp, 8
mov dword [eax + ecx*4], ebp
mov eax, dword [esi + 0x128]
inc eax
mov ebp, dword [esp + 0x1c]
mov dword [esi + 0x128], eax
mov eax, dword [esp + 0x30]
lea ecx, [edx + 1]
mov edx, dword [esp + 0x10]
add ebx, ecx
mov ecx, dword [esi + 0xf0]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
jl 0x42c4ed
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
inc ecx
inc eax
mov dword [esp + 0x34], ecx
add edi, eax
add ebp, eax
mov eax, dword [esi + 0xf4]
mov dword [esp + 0x18], edi
cmp ecx, eax
mov dword [esp + 0x1c], ebp
jl 0x42c4a9
jmp 0x42c9a7
mov eax, dword [esi + 0xf0]
mov ebx, dword [esi + 0x16c]
cdq
idiv edi
mov ebp, eax
mov eax, dword [esi + 0x11c]
cdq
idiv edi
mov dword [esp + 0x5c], ebp
mov ecx, eax
mov eax, dword [esi + 0x174]
sub eax, ebx
mov dword [esp + 0x58], ecx
cdq
idiv edi
mov dword [esp + 0x44], eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
jle 0x42c9a1
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0xf4]
mov dword [esp + 0x34], 0
test eax, eax
jle 0x42c980
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esi + 0x120]
add eax, edx
add eax, ebx
test ebp, ebp
mov dword [esp + 0x38], eax
jle 0x42c950
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x30], ebp
lea edx, [ebx + edx - 1]
mov ebx, edi
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x24]
add eax, edx
add edi, ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x60], eax
push 0x20
call fcn.0053ff1e
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
mov dword [esp + 0x9c], 2
je 0x42c7bd
mov ecx, eax
call fcn.0040e8b0
mov ebp, eax
jmp 0x42c7bf
xor ebp, ebp
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
mov edx, ebp
add eax, edi
mov dword [esp + 0x9c], 0xffffffff
mov dword [edx], ebx
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x90]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x14], edx
mov edx, dword [esi + 0x170]
add ecx, edx
mov edx, dword [esi + 0x16c]
mov eax, ebx
push ecx
mov ecx, dword [esi + 0x60]
add eax, edx
push eax
call fcn.00456040
mov dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x134]
mov eax, dword [esi + 0x130]
lea edx, [ecx*4 + 4]
push edx
push eax
call dword [0x553b1c]
mov ecx, dword [esi + 0x134]
mov dword [esi + 0x130], eax
push 0x20
mov dword [eax + ecx*4], ebp
mov eax, dword [esi + 0x134]
inc eax
mov dword [esi + 0x134], eax
call fcn.0053ff1e
add esp, 0xc
mov dword [esp + 0x48], eax
test eax, eax
mov dword [esp + 0x9c], 3
je 0x42c86d
mov ecx, eax
call fcn.0040e8b0
mov ebp, eax
jmp 0x42c86f
xor ebp, ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0xf8]
mov eax, edi
mov dword [esp + 0x9c], 0xffffffff
sub eax, ecx
mov ecx, dword [esp + 0x24]
add eax, edx
mov edx, dword [esi + 0xfc]
sub edx, ecx
mov ecx, dword [esp + 0x38]
lea edx, [edx + ecx - 1]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov edx, ebp
add ecx, edi
mov dword [edx], ecx
mov ecx, dword [esp + 0x68]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x14], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 0xc], eax
mov edx, dword [esi + 0x170]
add edx, ecx
mov ecx, dword [esi + 0x60]
push edx
mov edx, dword [esi + 0x16c]
mov eax, edi
add eax, edx
push eax
call fcn.00456040
mov dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x128]
mov eax, dword [esi + 0x124]
lea edx, [ecx*4 + 4]
push edx
push eax
call dword [0x553b1c]
mov ecx, dword [esi + 0x128]
mov edx, dword [esp + 0x48]
mov dword [esi + 0x124], eax
add esp, 8
mov dword [eax + ecx*4], ebp
mov eax, dword [esi + 0x128]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esi + 0x128], eax
lea eax, [edx + 1]
add ebx, eax
add edi, eax
mov eax, dword [esp + 0x30]
inc ecx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], eax
jne 0x42c795
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
inc edx
inc eax
mov dword [esp + 0x34], edx
add ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x18]
add ebx, eax
mov eax, dword [esi + 0xf4]
cmp edx, eax
mov dword [esp + 0x18], ebx
jl 0x42c748
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov edx, dword [esi + 0x10c]
inc eax
add edi, ebx
cmp eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], edi
jl 0x42c722
mov dword [esi + 0x11c], ecx
mov ecx, dword [esp + 0x94]
mov dword [esi + 0xa9c], 0xffffffff
mov dword [esi + 0x144], 1
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 4