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

Disassembly:
sub esp, 0x64
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xde0]
xor ebx, ebx
cmp eax, ebx
jg 0x4cf44b
mov al, byte [esi + 0xc6d]
test al, al
push ebp
mov ebp, 1
je 0x4ce7f8
mov al, byte [esi + 0xc6e]
test al, al
jne 0x4ce7ea
push ebx
push 0x5fbea8
mov byte [esi + 0xc6e], 1
call fcn.004fc940
mov ecx, esi
call fcn.004c9880
mov al, byte [esi + 0xc6d]
test al, al
jne 0x4cf44a
cmp dword [esi + 0x72c], ebx
jne 0x4ce80b
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
call fcn.00401140
mov al, byte [esi + 0x738]
test al, al
je 0x4ce86b
mov eax, dword [esi + 0x73c]
cmp eax, ebx
je 0x4cf44a
mov cl, byte [eax + 0x18]
test cl, cl
je 0x4cf44a
cmp dword [eax + 0x14], ebp
jne 0x4cf44a
call dword [0x5f6554]
mov ecx, dword [esi + 0x73c]
mov edx, dword [ecx + 0x10]
and eax, 0x7fffffff
sub eax, edx
cmp eax, 0x3a98
jl 0x4cf44a
push ebx
push esi
call fcn.004197c0
add esp, 8
pop ebp
pop esi
pop ebx
add esp, 0x64
ret 4
cmp dword [esi + 0x898], ebx
je 0x4ce894
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x898], ebx
call dword [edx + 0x5c]
xor ecx, ecx
cmp eax, ebx
sete cl
push ebp
push ecx
mov ecx, dword [esi + 0x7fc]
call fcn.0041d400
cmp dword [esi + 0x8a4], ebx
je 0x4ce922
mov ecx, dword [esi + 0x8ac]
mov edx, dword [esi]
xor eax, eax
mov al, byte [esi + 0x8b0]
mov dword [esi + 0x8a4], ebx
push eax
mov eax, dword [esi + 0x8a8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x6c]
cmp eax, 2
jne 0x4ce8db
mov ecx, dword [esi + 0x8a8]
push ecx
lea ecx, [esi + 0x868]
call fcn.00486830
mov eax, dword [esi + 0x8a8]
cmp eax, ebx
je 0x4ce8f4
push eax
call fcn.005dd350
add esp, 4
mov dword [esi + 0x8a8], ebx
mov eax, dword [esi + 0x8ac]
cmp eax, ebx
je 0x4ce90d
push eax
call fcn.005dd350
add esp, 4
mov dword [esi + 0x8ac], ebx
mov ecx, dword [esi + 0x7fc]
push 2
push ebx
mov byte [esi + 0x8b0], 0
call fcn.0041d400
cmp dword [esi + 0x8a0], ebx
je 0x4ce953
mov eax, dword [esi + 0x744]
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esi + 0x8a0], ebx
call dword [edx + 0x60]
xor ecx, ecx
test al, al
sete cl
push 3
push ecx
mov ecx, dword [esi + 0x7fc]
call fcn.0041d400
lea ecx, [esi + 0x24]
call fcn.0045c6d0
test eax, eax
jne 0x4cf44a
mov edx, dword [esi + 0x7fc]
cmp dword [edx + 0x14], ebx
jne 0x4cf44a
cmp dword [esi + 0x72c], ebx
jne 0x4cf44a
mov al, byte [esi + 0x730]
test al, al
jne 0x4cf44a
cmp dword [esi + 0x7b8], ebx
je 0x4cf44a
cmp dword [esi + 0x79c], ebx
jne 0x4cf44a
push edi
mov edi, dword [0x5f6554]
call edi
and eax, 0x7fffffff
mov dword [esp + 0x14], eax
cmp dword [esi + 0x5e8], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], ebx
je 0x4ce9ff
lea eax, [esp + 0x30]
push eax
call fcn.00503f00
add esp, 4
test eax, eax
je 0x4ce9ff
mov ecx, dword [esi + 0x860]
cmp ecx, ebx
je 0x4ce9ea
call fcn.00485b90
test eax, eax
jne 0x4ce9ff
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea ecx, [esi + 0x5e0]
call fcn.004603d0
call edi
mov edi, eax
mov eax, dword [esi + 0x8f4]
and edi, 0x7fffffff
cmp eax, ebx
je 0x4cea37
cmp dword [esi + 0x8f0], ebx
je 0x4cea37
call dword [0x5f64dc]
sub edi, dword [esi + 0x8f4]
cmp edi, eax
jle 0x4cea37
mov dword [esi + 0x8f4], ebx
mov dword [esi + 0x8f0], ebx
mov dword [esp + 0x18], esi
call fcn.00585e00
mov ecx, dword [esi + 0xc24]
call fcn.00509090
mov ecx, dword [esi + 0xc28]
mov dword [esp + 0x20], eax
call fcn.00510f10
mov ecx, dword [esi + 0xc20]
call fcn.00514510
lea eax, [esi + 0xc38]
push ebx
push eax
call fcn.0050e380
mov eax, dword [esi + 0xc30]
lea edi, [esi + 0xc30]
add esp, 8
cmp eax, ebx
je 0x4ceba7
mov ecx, dword [esi + 0x1c]
push 0x80
push ecx
lea ecx, [esp + 0x6c]
call fcn.004bfa20
lea edx, [esp + 0x64]
mov dword [esi + 0xc34], edx
mov ecx, dword [edi]
cmp ecx, ebx
je 0x4ceac1
jmp 0x4ceab0
call fcn.0051df30
mov edi, dword [edi]
mov ecx, dword [edi + 0xc]
add edi, 0xc
cmp ecx, ebx
jne 0x4ceab0
mov eax, dword [esi + 0xc30]
cmp eax, ebx
lea edi, [esi + 0xc30]
je 0x4ceb98
mov eax, dword [edi]
cmp dword [eax + 0xb4], ebx
je 0x4ceae7
lea edi, [eax + 0xc]
jmp 0x4ceb90
mov eax, dword [eax + 4]
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.00487de0
mov ecx, dword [edi]
call fcn.0051ca40
mov ecx, dword [edi]
call fcn.0051c140
mov ecx, dword [edi]
call fcn.0051c0b0
mov ecx, dword [edi]
call fcn.0051ddb0
mov ecx, dword [edi]
cmp dword [ecx + 0xb8], ebx
je 0x4ced3e
mov ebp, dword [ecx + 0x94]
cmp ebp, ebx
je 0x4ced1d
lea ecx, [ecx]
mov ecx, dword [ebp + 0xb8]
cmp ecx, ebx
je 0x4ceb3f
call fcn.005219e0
mov ebp, dword [ebp + 0x14]
cmp ebp, ebx
jne 0x4ceb30
mov eax, dword [edi]
mov ebp, dword [eax + 0x94]
cmp ebp, ebx
je 0x4ceb71
mov al, byte [ebp + 0x221]
test al, al
je 0x4ceb6a
mov ecx, ebp
call fcn.00523550
mov byte [ebp + 0x221], 0
mov ebp, dword [ebp + 0x14]
cmp ebp, ebx
jne 0x4ceb52
mov ecx, dword [edi]
call fcn.0051c180
mov ecx, dword [esp + 0x20]
mov edi, dword [edi]
or ecx, eax
mov dword [esp + 0x20], ecx
add edi, 0xc
lea ecx, [esp + 0x50]
call fcn.00486950
cmp dword [edi], ebx
jne 0x4cead5
lea ecx, [esp + 0x64]
mov dword [esi + 0xc34], ebx
call fcn.00552490
cmp dword [esp + 0x20], ebx
mov ebp, dword [esp + 0x78]
je 0x4cebdb
cmp ebp, ebx
je 0x4cebdb
fld qword [esi + 0x7b0]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fistp dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x78]
jge 0x4cebdb
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x98]
mov ecx, dword [esi + 0xc40]
cmp ecx, ebx
je 0x4cebea
call fcn.00443ae0
mov ecx, dword [esi + 0xc3c]
cmp ecx, ebx
je 0x4cebfa
push esi
call fcn.00438bc0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x4cec8f
call fcn.0048bf50
lea eax, [esi + 0x288]
push eax
lea ecx, [esp + 0x3c]
call fcn.004778a0
lea ecx, [esp + 0x38]
call fcn.004778f0
cmp eax, ebx
mov dword [esp + 0x78], eax
je 0x4cec86
mov edi, edi
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + 0xa4]
test eax, eax
je 0x4cec73
mov edi, ecx
call fcn.004a61e0
mov ebx, dword [eax + 0x28]
test ebx, ebx
je 0x4cec73
mov ecx, ebx
call fcn.004b1f10
test eax, eax
je 0x4cec73
mov al, byte [ebx + 0x12f]
test al, al
jne 0x4cec73
mov edx, dword [edi + 0x2c]
mov eax, dword [edx + 0x5c0]
test ah, 8
je 0x4ced8e
lea ecx, [esp + 0x38]
call fcn.004778f0
test eax, eax
mov dword [esp + 0x78], eax
jne 0x4cec30
xor ebx, ebx
lea ecx, [esp + 0x38]
call fcn.004778c0
cmp ebp, ebx
je 0x4ceede
fld qword [esi + 0x7b0]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fistp dword [esp + 0x78]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x78]
jge 0x4ceede
mov ecx, dword [esi + 0x594]
call fcn.00440e00
mov ecx, esi
call fcn.004c6720
cmp dword [esi + 0x5e8], ebx
je 0x4ced0a
lea ecx, [esp + 0x30]
push ecx
call fcn.00503f00
add esp, 4
test eax, eax
je 0x4ced0a
mov ecx, dword [esi + 0x860]
cmp ecx, ebx
je 0x4cecf5
call fcn.00485b90
test eax, eax
jne 0x4ced0a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esi + 0x5e0]
call fcn.00460430
lea ecx, [esp + 0x18]
call fcn.004b77c0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x64
ret 4
cmp dword [ecx + 4], ebx
jne 0x4ceb46
cmp ecx, ebx
mov edx, dword [ecx + 0xc]
mov dword [edi], edx
je 0x4ceb87
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x4ceb87
mov ecx, dword [ecx + 0x5c]
call fcn.0050bf20
test eax, eax
jne 0x4ceb46
mov ebp, dword [edi]
mov ecx, dword [ebp + 0xc]
mov dword [edi], ecx
cmp dword [ebp + 4], ebx
je 0x4ced80
mov ecx, ebp
call fcn.0051c7b0
test eax, eax
mov ecx, ebp
je 0x4ced7a
call fcn.0051c270
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
jmp 0x4ceb87
push ebx
call fcn.0051c1e0
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
jmp 0x4ceb87
mov edi, dword [edi + 0x40]
mov ecx, ebx
call fcn.00489530
sub eax, edi
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.004b4e00
cmp eax, 5
jle 0x4ceead
fld qword [esi + 0x7b0]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fistp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x680]
sub eax, edx
mov dword [esi + ecx*4 + 0x66c], eax
mov eax, dword [esi + 0x680]
inc eax
cdq
mov ecx, 5
idiv ecx
xor eax, eax
xor ebp, ebp
mov edi, ecx
mov dword [esi + 0x680], edx
lea edx, [esi + 0x66c]
mov ecx, dword [edx]
cmp ebp, ecx
jg 0x4cee00
mov ebp, ecx
add eax, ecx
add edx, 4
dec edi
jne 0x4cedf8
sub eax, ebp
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
cmp edi, 0xa
jle 0x4cee89
cmp edi, 0x3e8
jge 0x4cee89
mov ebp, dword [esi + 0x584]
fld qword [ebp + 0x208]
call fcn.004fae80
fld qword [ebp + 0x208]
add edi, eax
fmul qword [0x5f66e8]
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
mov eax, dword [eax + 4]
fstp qword [esp + 0x20]
sar edx, 2
and edx, 3
mov ecx, dword [edx*4 + 0x5fb068]
shl eax, cl
lea ecx, [eax + eax*4]
shl ecx, 1
mov eax, 0x4a4dc96f
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
fld qword [esp + 0x20]
fistp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
add eax, edi
cdq
idiv ecx
add dword [esp + 0x10], eax
jmp 0x4ceead
test ebp, ebp
jle 0x4ceead
xor ecx, ecx
mov dword [esi + 0x66c], ecx
mov dword [esi + 0x670], ecx
mov dword [esi + 0x674], ecx
mov dword [esi + 0x678], ecx
mov dword [esi + 0x67c], ecx
mov eax, dword [esp + 0x10]
test eax, eax
mov edx, dword [esp + 0x78]
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x38]
jg 0x4ceed9
call fcn.004778c0
lea ecx, [esp + 0x18]
call fcn.004b77c0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x64
ret 4
call fcn.004778c0
lea ecx, [esp + 0x18]
call fcn.004b77c0
fild dword [esp + 0x14]
mov ecx, dword [esi + 0x584]
mov ebx, dword [esp + 0x10]
fadd qword [ecx + 0x208]
xor ebp, ebp
cmp ebx, ebp
fstp qword [esi + 0x7b0]
je 0x4cf256
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebp
lea eax, [esi + 0x280]
push eax
lea ecx, [esp + 0x48]
call fcn.004778a0
lea ecx, [esp + 0x44]
call fcn.004778f0
mov edi, eax
test edi, edi
je 0x4cefbc
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x4cef9e
mov ecx, edi
call fcn.004a61e0
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4cef9e
cmp edi, dword [esp + 0x28]
je 0x4cef9e
mov ecx, edi
call fcn.004a61e0
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4cef9e
mov ecx, dword [eax + 0x28]
test ecx, ecx
jne 0x4cef9e
mov edx, dword [edi + 0x2c]
mov eax, dword [edx + 0x5c0]
test ah, 8
jne 0x4cef9e
mov ebx, dword [edi + 0x40]
mov ecx, edi
call fcn.004a61e0
mov ecx, dword [eax + 0x28]
call fcn.00489530
cmp eax, ebx
jge 0x4cef9e
mov ecx, edi
call fcn.004a61e0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4cefa9
push 0
mov ecx, edi
push 1
call fcn.004ad750
lea ecx, [esp + 0x44]
call fcn.004778f0
mov edi, eax
test edi, edi
jne 0x4cef36
lea ecx, [esp + 0x44]
call fcn.004778c0
mov al, byte [esi + 0xc51]
test al, al
je 0x4cf014
lea eax, [esi + 0x280]
push eax
lea ecx, [esp + 0x54]
mov byte [esi + 0xc51], 0
call fcn.004778a0
lea ecx, [esp + 0x50]
call fcn.004778f0
test eax, eax
je 0x4cf00b
mov ecx, dword [eax + 0xb4]
call fcn.004ab7e0
lea ecx, [esp + 0x50]
call fcn.004778f0
test eax, eax
jne 0x4ceff3
lea ecx, [esp + 0x50]
call fcn.004778c0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4cf020
call fcn.00552830
mov ecx, dword [esi + 0x594]
call fcn.00441270
mov ecx, esi
call fcn.004c6720
mov eax, dword [esi + 0x558]
mov ecx, dword [esi + 0x554]
push eax
call fcn.00479b40
mov eax, dword [esi + 0x5e8]
test eax, eax
je 0x4cf091
mov eax, dword [esi + 0x7f8]
test eax, eax
jne 0x4cf091
lea ecx, [esp + 0x18]
push ecx
call fcn.00503f00
add esp, 4
test eax, eax
je 0x4cf091
mov ecx, dword [esi + 0x860]
test ecx, ecx
je 0x4cf07c
call fcn.00485b90
test eax, eax
jne 0x4cf091
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esi + 0x5e0]
call fcn.00460490
push 0
mov ecx, esi
call fcn.00485ae0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4cf0a6
call fcn.00552fd0
lea eax, [esi + 0x290]
push eax
lea ecx, [esp + 0x68]
call fcn.004778a0
lea ecx, [esp + 0x64]
call fcn.004778f0
mov ebp, eax
test ebp, ebp
je 0x4cf1f0
lea esp, [esp]
mov ecx, dword [ebp + 0x2c]
call fcn.0049e1f0
test eax, eax
je 0x4cf1dd
mov ecx, dword [ebp + 0x2c]
call fcn.0049e220
test al, al
jne 0x4cf1dd
mov ecx, dword [ebp + 0x2c]
call fcn.0049e1f0
push ebp
lea ecx, [esi + 0x290]
mov ebx, eax
call fcn.004790b0
mov eax, dword [esi + 0x864]
test eax, eax
jne 0x4cf12b
mov eax, dword [esi + 0xc70]
test eax, eax
je 0x4cf139
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4cf139
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x4cf139
mov eax, dword [eax + 0xac]
test eax, eax
je 0x4cf139
mov edi, eax
jmp 0x4cf142
mov ecx, dword [esi + 0x584]
mov edi, dword [ecx + 0x54]
lea edx, [esp + 0x38]
push edx
mov ecx, ebx
call fcn.0040dba0
mov eax, dword [eax]
push 0
push eax
push edi
mov ecx, esi
call fcn.004c21f0
mov edi, eax
mov eax, dword [esp + 0x38]
push eax
call fcn.005dd350
xor eax, eax
add esp, 4
cmp edi, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
jne 0x4cf17f
mov edi, dword [ebp + 0x2c]
mov ebx, dword [ebx + 0x28]
push 0x405be0
push 1
push 4
lea ecx, [esp + 0x84]
push ecx
call fcn.00401000
push edi
lea ecx, [esp + 0x7c]
call fcn.00476840
mov ecx, dword [ebp + 0x2c]
call fcn.0049e210
test ebx, ebx
je 0x4cf1c7
push 0
push 1
lea edx, [esp + 0x80]
push edx
push str.onLoadInit
push ebx
mov ecx, esi
call fcn.004c7aa0
push 0x401470
push 1
push 4
lea eax, [esp + 0x84]
push eax
call fcn.00401030
lea ecx, [esp + 0x64]
call fcn.004778f0
mov ebp, eax
test ebp, ebp
jne 0x4cf0d0
mov eax, dword [esi + 0x5e8]
test eax, eax
je 0x4cf23d
mov eax, dword [esi + 0x7f8]
test eax, eax
jne 0x4cf23d
lea ecx, [esp + 0x18]
push ecx
call fcn.00503f00
add esp, 4
test eax, eax
je 0x4cf23d
mov ecx, dword [esi + 0x860]
test ecx, ecx
je 0x4cf228
call fcn.00485b90
test eax, eax
jne 0x4cf23d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esi + 0x5e0]
call fcn.004604f0
lea ecx, [esp + 0x64]
call fcn.004778c0
dec dword [esp + 0x20]
jne 0x4cef13
mov ebx, dword [esp + 0x10]
xor ebp, ebp
mov ecx, dword [esi + 0xc2c]
push ebp
push 2
dec ebx
call fcn.0051b750
mov edi, dword [esi + 0xc30]
cmp edi, ebp
je 0x4cf286
nop
mov ecx, dword [edi + 0xbc]
cmp ecx, ebp
je 0x4cf27f
call fcn.004351a0
mov edi, dword [edi + 0xc]
cmp edi, ebp
jne 0x4cf270
push ebp
push esi
lea ecx, [esi + 0x820]
call fcn.004b5500
push ebp
mov ecx, esi
call fcn.004cc4c0
lea ecx, [esi + 0x640]
call fcn.004cc170
mov ecx, esi
call fcn.004c6e90
cmp dword [esi + 0x780], ebp
je 0x4cf2c9
lea ecx, [esi + 0x7c4]
push ecx
mov ecx, esi
call fcn.004be7b0
mov dword [esi + 0x780], ebp
cmp dword [esi + 0x538], ebp
jne 0x4cf306
cmp dword [esi + 0x6b4], ebp
jne 0x4cf306
mov eax, dword [esi + 0x7c0]
cmp eax, ebp
jl 0x4cf306
push ebp
push eax
lea edi, [esi + 0x7c4]
push edi
mov ecx, esi
call fcn.004cd9b0
mov edx, dword [esi + 0x7c8]
mov eax, dword [edi]
push edx
push eax
push 2
mov ecx, esi
call fcn.004ba160
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x98]
cmp dword [esi + 0x658], ebp
je 0x4cf3e4
call dword [0x5f6554]
mov edx, dword [esi + 0x584]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 0x7fffffff
sub ecx, eax
mov dword [esp + 0x78], ecx
fild dword [esp + 0x78]
fcomp qword [edx + 0x208]
fnstsw ax
test ah, 0x41
je 0x4cf376
cmp ebx, 1
jg 0x4cf376
fld qword [edx + 0x208]
fmul qword [0x5f7998]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fistp dword [esp + 0x78]
cmp ecx, dword [esp + 0x78]
jge 0x4cf37c
inc dword [esi + 0x688]
jmp 0x4cf37c
inc dword [esi + 0x684]
mov edx, dword [esi + 0x68c]
inc edx
mov eax, edx
cmp eax, 4
mov dword [esi + 0x68c], edx
jle 0x4cf3de
cmp dword [esi + 0x65c], 0xa
jle 0x4cf3de
mov ecx, dword [esi + 0x654]
mov edx, 2
cmp ecx, edx
jne 0x4cf3bd
mov ecx, dword [esi + 0x684]
lea ecx, [ecx + ecx*2]
cmp ecx, eax
jle 0x4cf3de
mov dword [esi + 0x654], ebp
jmp 0x4cf3d0
mov ecx, dword [esi + 0x688]
lea ecx, [ecx + ecx*2]
cmp ecx, eax
jle 0x4cf3de
mov dword [esi + 0x654], edx
mov ecx, esi
push edx
mov dword [esi + 0x65c], ebp
call fcn.004c7fc0
inc dword [esi + 0x65c]
mov ecx, dword [esi + 0x1c]
add ecx, 0x340
call fcn.005dbc00
mov edx, dword [esi + 0x1c]
mov ecx, dword [edx + 0x324]
call fcn.005d9f70
lea ecx, [esi + 0x24]
call fcn.00457d40
cmp dword [esi + 0x5e8], ebp
je 0x4cf449
lea eax, [esp + 0x30]
push eax
call fcn.00503f00
add esp, 4
test eax, eax
je 0x4cf449
mov ecx, dword [esi + 0x860]
cmp ecx, ebp
je 0x4cf434
call fcn.00485b90
test eax, eax
jne 0x4cf449
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea ecx, [esi + 0x5e0]
call fcn.00460430
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x64
ret 4