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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff20
mov ebp, edx
mov ebx, eax
cmp byte [ebx + 0x194], 0
jne 0x4cdb36
cmp dword [ebx + 0x394], 0
je 0x4ceda5
mov edx, ebp
mov eax, dword [ebx + 0x394]
call fcn.00656d18
jmp 0x4ceda5
cmp ebp, dword [ebx + 0x1a0]
je 0x4cdb4e
cmp ebp, dword [ebx + 0x1f4]
je 0x4cdb4e
cmp ebp, dword [ebx + 0x1fc]
jne 0x4cdb73
cmp dword [ebx + 0x390], 0
je 0x4cdb68
cmp byte [ebx + 0x38d], 0
jne 0x4cdb73
cmp ebp, dword [ebx + 0x390]
jne 0x4cdb73
mov dword [ebx + 0x390], ebp
jmp 0x4ceda5
cmp dword [ebx + 0x390], 0
je 0x4cdb99
cmp ebp, dword [ebx + 0x390]
je 0x4cdb99
mov eax, ebx
call fcn.004cf2b8
mov edx, ebp
mov eax, ebx
call fcn.004cdb00
jmp 0x4ceda5
mov eax, dword [ebx + 0x248]
mov dword [esp + 0x54], eax
mov edx, ebp
mov eax, dword [ebx + 0x394]
call fcn.00656dac
test al, al
jne 0x4cdbc1
mov edx, ebp
mov eax, dword [ebx + 0x394]
call fcn.00656c78
mov eax, dword [ebx + 0x398]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, ebx
call fcn.004cfccc
mov dword [esp + 0x28], eax
mov eax, ebx
call fcn.004cfd04
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
mov al, byte [eax + 0x146]
dec eax
sub al, 2
jae 0x4cdc14
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x2770]
mov eax, dword [esp + 0x54]
call fcn.00564980
mov eax, dword [eax + 0x584]
mov dword [esp + 0x4c], eax
jmp 0x4cdc67
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x2770]
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 0xa8]
mov edx, dword [edx + 0x1c]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
call fcn.0055917c
call fcn.00559130
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x40]
mov edx, dword [esp + 0x58]
sub eax, dword [edx + 0x38]
mov edx, dword [esp + 0x58]
sub eax, dword [edx + 0x5c]
mov edx, dword [esp + 0x58]
sub eax, dword [edx + 0x64]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
push eax
push 0x2710
mov eax, dword [esp + 0x34]
push eax
call sub.kernel32.dll_MulDiv
mov dword [esp + 0x30], eax
cmp ebp, dword [ebx + 0x1a4]
jne 0x4cdce5
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 0x18]
dec eax
cmp eax, 0
jl 0x4cdce5
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x50]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x1a4]
call fcn.0063cd0c
test eax, eax
jne 0x4cdcd1
mov eax, dword [esp + 0x30]
sar eax, 1
jns 0x4cdcc8
adc eax, 0
mov edx, dword [esp + 0x5c]
mov dword [edx + 0x10], eax
jmp 0x4cdcda
mov eax, dword [esp + 0x5c]
xor edx, edx
mov dword [eax + 0x10], edx
dec dword [esp + 0x50]
cmp dword [esp + 0x50], 0xffffffff
jne 0x4cdc9a
cmp ebp, dword [ebx + 0x1a0]
jne 0x4cde31
mov eax, dword [ebx + 0x1a0]
call fcn.00421eb0
test al, al
je 0x4cde31
mov eax, dword [ebx + 0x1a4]
call fcn.0063cd0c
test eax, eax
jne 0x4cdd48
mov eax, dword [ebx + 0x1a0]
mov eax, dword [eax + 0x158]
add eax, eax
lea eax, [eax + eax*4]
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fild dword [esp + 0x30]
fdivp st(1)
fstp dword [esp + 0x24]
wait
mov eax, dword [esp + 0x38]
sar eax, 1
jns 0x4cdd42
adc eax, 0
mov dword [esp + 0x38], eax
jmp 0x4cdd72
mov eax, dword [ebx + 0x1a0]
call fcn.00421b30
mov dword [esp + 0xbc], eax
fild dword [esp + 0xbc]
fild dword [esp + 0x2c]
fdivp st(1)
fstp dword [esp + 0x24]
wait
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 0x18]
dec eax
cmp eax, 0
jl 0x4cde31
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x50]
mov eax, dword [eax + edx*4]
mov dword [esp], eax
mov eax, dword [esp]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x38]
mov dword [eax + 0x10], edx
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
sub eax, dword [esp + 0x28]
mov dword [esp + 0xbc], eax
fild dword [esp + 0xbc]
fmul dword [esp + 0x24]
call fcn.00402588
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x60]
mov edi, dword [eax + 0xd8]
dec edi
cmp edi, 0
jl 0x4cde22
imul eax, edi, 0x27
mov edx, dword [esp + 0x60]
lea esi, [edx + eax*4 + 0xdc]
mov eax, dword [esi]
sub eax, dword [esp + 0x28]
mov dword [esp + 0xbc], eax
fild dword [esp + 0xbc]
fmul dword [esp + 0x24]
call fcn.00402588
add eax, dword [esp + 0x28]
mov dword [esi], eax
dec edi
cmp edi, 0xffffffff
jne 0x4cddeb
dec dword [esp + 0x50]
cmp dword [esp + 0x50], 0xffffffff
jne 0x4cdd89
cmp ebp, dword [ebx + 0x1a8]
je 0x4cde75
cmp ebp, dword [ebx + 0x1ac]
je 0x4cde75
cmp ebp, dword [ebx + 0x1b0]
je 0x4cde75
cmp ebp, dword [ebx + 0x1b4]
je 0x4cde75
cmp ebp, dword [ebx + 0x1b8]
je 0x4cde75
cmp ebp, dword [ebx + 0x1bc]
je 0x4cde75
cmp ebp, dword [ebx + 0x1c0]
je 0x4cde75
cmp ebp, dword [ebx + 0x1c4]
jne 0x4ce002
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 0x18]
dec eax
cmp eax, 0
jl 0x4ce002
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x50]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x64], eax
cmp ebp, dword [ebx + 0x1a8]
jne 0x4cdeb5
mov eax, dword [esp + 0x64]
xor edx, edx
mov dword [eax], edx
jmp 0x4cdff3
cmp ebp, dword [ebx + 0x1ac]
jne 0x4cdecc
mov eax, dword [esp + 0x64]
mov dword [eax], 1
jmp 0x4cdff3
cmp ebp, dword [ebx + 0x1b0]
jne 0x4cdee3
mov eax, dword [esp + 0x64]
mov dword [eax], 2
jmp 0x4cdff3
cmp ebp, dword [ebx + 0x1b4]
jne 0x4cdf49
mov eax, dword [ebx + 0x1b4]
call fcn.00421eb0
test al, al
je 0x4cdf49
mov eax, dword [ebx + 0x1b4]
call fcn.00421b30
sub eax, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
add dword [eax + 4], edx
mov eax, dword [esp + 0x64]
mov edi, dword [eax + 0xd8]
dec edi
cmp edi, 0
jl 0x4cdff3
imul eax, edi, 0x27
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x34]
add dword [edx + eax*4 + 0xdc], ecx
dec edi
cmp edi, 0xffffffff
jne 0x4cdf2c
jmp 0x4cdff3
cmp ebp, dword [ebx + 0x1b8]
jne 0x4cdf74
mov eax, dword [ebx + 0x1b8]
call fcn.00421eb0
test al, al
je 0x4cdf74
mov eax, dword [ebx + 0x1b8]
call fcn.00421b30
mov edx, dword [esp + 0x64]
mov dword [edx + 0x14], eax
jmp 0x4cdff3
cmp ebp, dword [ebx + 0x1bc]
jne 0x4cdf9f
mov eax, dword [ebx + 0x1bc]
call fcn.00421eb0
test al, al
je 0x4cdf9f
mov eax, dword [ebx + 0x1bc]
call fcn.00421b30
mov edx, dword [esp + 0x64]
mov dword [edx + 0x18], eax
jmp 0x4cdff3
cmp ebp, dword [ebx + 0x1c0]
jne 0x4cdfca
mov eax, dword [ebx + 0x1c0]
call fcn.00421eb0
test al, al
je 0x4cdfca
mov eax, dword [ebx + 0x1c0]
call fcn.00421b30
mov edx, dword [esp + 0x64]
mov dword [edx + 0x1c], eax
jmp 0x4cdff3
cmp ebp, dword [ebx + 0x1c4]
jne 0x4cdff3
mov eax, dword [ebx + 0x1c4]
call fcn.00421eb0
test al, al
je 0x4cdff3
mov eax, dword [ebx + 0x1c4]
call fcn.00421b30
mov edx, dword [esp + 0x64]
mov dword [edx + 0x20], eax
dec dword [esp + 0x50]
cmp dword [esp + 0x50], 0xffffffff
jne 0x4cde8c
mov eax, ebx
call fcn.004cfd54
mov edi, eax
cmp ebp, dword [ebx + 0x1c8]
je 0x4ce01f
cmp ebp, dword [ebx + 0x1d0]
jne 0x4ce0e9
cmp ebp, dword [ebx + 0x1c8]
jne 0x4ce04b
mov eax, dword [edi + 0x1c]
cmp dword [eax], 0
jne 0x4ce03f
mov eax, dword [ebx + 0x398]
mov eax, dword [eax + 0x18]
dec eax
mov dword [esp + 0x3c], eax
jmp 0x4ce074
mov eax, dword [edi + 0x1c]
mov eax, dword [eax]
dec eax
mov dword [esp + 0x3c], eax
jmp 0x4ce074
mov eax, edi
call fcn.00656c90
mov edx, dword [ebx + 0x398]
mov edx, dword [edx + 0x18]
dec edx
cmp eax, edx
jne 0x4ce068
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x4ce074
mov eax, edi
call fcn.00656c90
inc eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x398]
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + edx*4]
add eax, 0x2760
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x14]
push eax
mov al, byte [0x4cedb0]
push eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x74]
mov edx, dword [eax]
mov eax, dword [esp + 0x60]
call fcn.005c5e64
push 0
mov al, byte [0x4cedb0]
push eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x70]
mov edx, dword [eax]
mov eax, dword [esp + 0x5c]
call fcn.005c332c
mov dl, 4
mov eax, dword [esp + 0x54]
call fcn.005c2a3c
mov byte [ebx + 0x38c], 1
cmp ebp, dword [ebx + 0x1d4]
je 0x4ce115
cmp ebp, dword [ebx + 0x1dc]
je 0x4ce115
cmp ebp, dword [ebx + 0x1d8]
je 0x4ce115
cmp ebp, dword [ebx + 0x1e0]
je 0x4ce115
cmp ebp, dword [ebx + 0x1e4]
jne 0x4ce2c1
mov eax, dword [edi + 0x18]
dec eax
cmp eax, 0
jl 0x4ce2c1
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x1c]
mov edx, dword [esp + 0x50]
mov esi, dword [eax + edx*4]
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x6c], eax
cmp ebp, dword [ebx + 0x1d4]
jne 0x4ce184
mov eax, dword [ebx + 0x1d4]
cmp byte [eax + 0x124], 2
jne 0x4ce16f
mov eax, dword [ebx + 0x398]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x10]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xc], eax
jmp 0x4ce178
mov eax, dword [esp + 0x6c]
xor edx, edx
mov dword [eax + 0xc], edx
mov byte [ebx + 0x38c], 1
jmp 0x4ce2b2
cmp ebp, dword [ebx + 0x1dc]
jne 0x4ce1c2
mov eax, dword [ebx + 0x1dc]
call fcn.0063cd0c
dec eax
sete al
and eax, 0x7f
add eax, eax
mov ecx, 1
sub ecx, eax
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0xc]
cdq
xor eax, edx
sub eax, edx
imul ecx, eax
mov eax, dword [esp + 0x6c]
mov dword [eax + 0xc], ecx
jmp 0x4ce2b2
cmp ebp, dword [ebx + 0x1e0]
jne 0x4ce21f
mov eax, dword [ebx + 0x1e0]
mov al, byte [eax + 0x124]
sub al, 1
jb 0x4ce1de
je 0x4ce1ee
jmp 0x4ce1fe
mov eax, dword [esp + 0x6c]
mov byte [eax + 0x2750], 1
jmp 0x4ce2b2
mov eax, dword [esp + 0x6c]
mov byte [eax + 0x2750], 0
jmp 0x4ce2b2
mov eax, dword [ebx + 0x398]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov al, byte [eax + 0x2754]
mov edx, dword [esp + 0x6c]
mov byte [edx + 0x2750], al
jmp 0x4ce2b2
cmp ebp, dword [ebx + 0x1e4]
jne 0x4ce273
mov eax, dword [ebx + 0x1e4]
mov al, byte [eax + 0x124]
sub al, 1
jb 0x4ce23b
je 0x4ce248
jmp 0x4ce255
mov eax, dword [esp + 0x6c]
mov byte [eax + 0x2751], 0
jmp 0x4ce2b2
mov eax, dword [esp + 0x6c]
mov byte [eax + 0x2751], 1
jmp 0x4ce2b2
mov eax, dword [ebx + 0x398]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov al, byte [eax + 0x2755]
mov edx, dword [esp + 0x6c]
mov byte [edx + 0x2751], al
jmp 0x4ce2b2
mov eax, dword [ebx + 0x1d8]
call fcn.00421eb0
test al, al
je 0x4ce2b2
mov eax, dword [ebx + 0x1dc]
call fcn.0063cd0c
dec eax
sete al
and eax, 0x7f
add eax, eax
mov esi, 1
sub esi, eax
mov eax, dword [ebx + 0x1d8]
call fcn.00421b30
imul esi, eax
mov eax, dword [esp + 0x6c]
mov dword [eax + 0xc], esi
dec dword [esp + 0x50]
cmp dword [esp + 0x50], 0xffffffff
jne 0x4ce126
mov eax, edi
call fcn.00656ff0
cmp ebp, dword [ebx + 0x1e8]
je 0x4ce2dc
cmp ebp, dword [ebx + 0x1f0]
jne 0x4ce40a
mov eax, ebx
call fcn.004cff60
mov dword [esp + 0x70], eax
mov eax, ebx
call fcn.004cfed0
mov dword [esp + 0x14], eax
cmp ebp, dword [ebx + 0x1e8]
jne 0x4ce32e
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x1c]
cmp dword [eax], 0
jne 0x4ce31e
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
test eax, eax
jns 0x4ce314
add eax, 7
sar eax, 3
dec eax
mov dword [esp + 0x40], eax
jmp 0x4ce363
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
dec eax
mov dword [esp + 0x40], eax
jmp 0x4ce363
mov eax, dword [esp + 0x70]
call fcn.00656c90
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 8]
test edx, edx
jns 0x4ce345
add edx, 7
sar edx, 3
dec edx
cmp eax, edx
jne 0x4ce355
xor eax, eax
mov dword [esp + 0x40], eax
jmp 0x4ce363
mov eax, dword [esp + 0x70]
call fcn.00656c90
inc eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
call fcn.004028c0
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.004d010c
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x2f8]
mov edx, dword [esp + 8]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [esp + 8]
call fcn.005485c8
mov eax, dword [esp + 0x54]
lea edx, [eax + 0x2f8]
mov eax, dword [esp + 0x54]
call fcn.005c5540
mov eax, dword [esp + 0x54]
call fcn.005c64c8
call fcn.00501d7c
mov eax, dword [esp + 0x54]
call fcn.005c1fa8
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 4]
mov dword [esp + 0x74], eax
push 0
mov al, byte [0x4cedb0]
push eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x7c]
mov edx, dword [eax]
mov eax, dword [esp + 0x5c]
call fcn.005c332c
mov dl, 4
mov eax, dword [esp + 0x54]
call fcn.005c2a3c
mov byte [ebx + 0x38c], 1
mov eax, dword [esp + 0x70]
call fcn.00656ff0
cmp ebp, dword [ebx + 0x1f4]
je 0x4ce46e
cmp ebp, dword [ebx + 0x1f8]
je 0x4ce46e
cmp ebp, dword [ebx + 0x1fc]
je 0x4ce46e
cmp ebp, dword [ebx + 0x200]
je 0x4ce46e
cmp ebp, dword [ebx + 0x204]
je 0x4ce46e
cmp ebp, dword [ebx + 0x208]
je 0x4ce46e
cmp ebp, dword [ebx + 0x20c]
je 0x4ce46e
cmp ebp, dword [ebx + 0x210]
je 0x4ce46e
cmp ebp, dword [ebx + 0x214]
je 0x4ce46e
cmp ebp, dword [ebx + 0x218]
je 0x4ce46e
cmp ebp, dword [ebx + 0x21c]
je 0x4ce46e
cmp ebp, dword [ebx + 0x220]
jne 0x4ceab1
cmp ebp, dword [ebx + 0x1f4]
je 0x4ce47e
cmp ebp, dword [ebx + 0x1f8]
jne 0x4ce4a4
mov edx, 0x80000000
mov eax, ebx
call fcn.004d010c
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1f4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1f8]
mov dword [esp + 0x10], eax
jmp 0x4ce4c7
xor ecx, ecx
mov dl, 1
mov eax, ebx
call fcn.004d02c8
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1fc]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x200]
mov dword [esp + 0x10], eax
cmp ebp, dword [esp + 0xc]
jne 0x4ce8af
mov eax, dword [esp + 0xc]
call fcn.00421eb0
test al, al
je 0x4ce8af
xor eax, eax
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 8]
call fcn.00548170
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
mov edx, dword [eax]
mov eax, dword [esp + 0x54]
call fcn.005f4be0
mov esi, dword [eax + 0x275c]
lea ecx, [esp + 0x9c]
mov eax, dword [esp + 0x78]
mov edx, dword [eax]
mov eax, dword [esp + 0x54]
call fcn.005f4c20
call fcn.00656a20
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 8]
call fcn.00548170
mov edx, dword [eax]
mov eax, dword [esp + 0x54]
call fcn.005f48fc
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x44]
mov edx, edi
mov eax, dword [esp + 0x18]
call fcn.00656dac
test al, al
jne 0x4ce567
mov edx, edi
mov eax, dword [esp + 0x18]
call fcn.00656c78
inc dword [esp + 0x50]
mov eax, dword [esp + 8]
call fcn.00548140
cmp eax, dword [esp + 0x50]
je 0x4ce5a9
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 8]
call fcn.00548170
mov edx, dword [eax]
lea ecx, [esp + 0xc0]
mov eax, dword [esp + 0x54]
call fcn.005f4c20
mov eax, dword [esp + 0xc0]
cmp eax, dword [esp + 0x9c]
je 0x4ce52d
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov dword [esp], eax
mov eax, dword [esp]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
call fcn.0063cd0c
test eax, eax
jne 0x4ce7e8
push 0x3e8
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
mov edx, dword [esp + 0x10]
imul dword [edx + 0x158]
push eax
mov eax, dword [esp + 0x34]
push eax
call sub.kernel32.dll_MulDiv
mov edx, eax
mov eax, dword [esp + 0x7c]
imul eax, dword [eax + 0xd8], 0x27
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + eax*4 + 0x40]
mov ecx, dword [esp + 0x7c]
sub eax, dword [ecx + 4]
mov ecx, dword [esp + 0x7c]
mov ecx, dword [ecx + 0xd8]
mov esi, dword [esp + 0x18]
sub ecx, dword [esi + 0x18]
imul ecx, ecx, 0xb4
sub eax, ecx
call fcn.0065b28c
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x18]
cdq
idiv ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x4ce88e
inc eax
mov dword [esp + 0x80], eax
xor edi, edi
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + edi*4]
mov dword [esp + 0x44], eax
imul eax, dword [esp + 0x44], 0x27
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + eax*4 + 0xdc]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x44], 0
jne 0x4ce689
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 4]
sub dword [esp + 0x34], eax
jmp 0x4ce69a
imul eax, dword [esp + 0x44], 0x27
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + eax*4 + 0x40]
sub dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
call fcn.004cdadc
mov esi, dword [esp + 0x44]
inc esi
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 0xd8]
dec eax
sub eax, esi
jl 0x4ce766
inc eax
mov dword [esp + 0x84], eax
cmp dword [esp + 0x34], 0
je 0x4ce766
mov edx, esi
mov eax, dword [esp + 0x18]
call fcn.00656dac
test al, al
jne 0x4ce758
cmp dword [esp + 0x34], 0
jge 0x4ce70f
mov ecx, dword [esp + 0x34]
neg ecx
mov eax, dword [esp]
mov edx, esi
call fcn.004cdadc
xor eax, eax
mov dword [esp + 0x34], eax
jmp 0x4ce758
imul eax, esi, 0x27
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + eax*4 + 0xdc]
test esi, esi
jne 0x4ce72a
mov edx, dword [esp + 0x7c]
sub eax, dword [edx + 4]
jmp 0x4ce735
imul edx, esi, 0x27
mov ecx, dword [esp + 0x7c]
sub eax, dword [ecx + edx*4 + 0x40]
mov edx, eax
sub edx, 0xb4
mov eax, dword [esp + 0x34]
call fcn.0065b28c
sub dword [esp + 0x34], eax
mov ecx, eax
neg ecx
mov eax, dword [esp]
mov edx, esi
call fcn.004cdadc
inc esi
dec dword [esp + 0x84]
jne 0x4ce6d6
mov esi, dword [esp + 0x44]
dec esi
cmp esi, 0
jl 0x4ce7d5
cmp dword [esp + 0x34], 0
je 0x4ce7d5
mov edx, esi
mov eax, dword [esp + 0x18]
call fcn.00656dac
test al, al
jne 0x4ce7cf
imul eax, esi, 0x27
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + eax*4 + 0xdc]
test esi, esi
jne 0x4ce7a1
mov edx, dword [esp + 0x7c]
sub eax, dword [edx + 4]
jmp 0x4ce7ac
imul edx, esi, 0x27
mov ecx, dword [esp + 0x7c]
sub eax, dword [ecx + edx*4 + 0x40]
mov edx, eax
sub edx, 0xb4
mov eax, dword [esp + 0x34]
call fcn.0065b28c
sub dword [esp + 0x34], eax
mov ecx, eax
neg ecx
mov eax, dword [esp]
mov edx, esi
call fcn.004cdadc
dec esi
cmp esi, 0xffffffff
jne 0x4ce770
inc edi
dec dword [esp + 0x80]
jne 0x4ce653
jmp 0x4ce88e
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x18]
dec edi
cmp edi, 0
jl 0x4ce88e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + edi*4]
mov dword [esp + 0x44], eax
imul eax, dword [esp + 0x44], 0x27
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + eax*4 + 0xdc]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x44], 0
jne 0x4ce82f
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 4]
sub dword [esp + 0x34], eax
jmp 0x4ce840
imul eax, dword [esp + 0x44], 0x27
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + eax*4 + 0x40]
sub dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
call fcn.00421b30
sub dword [esp + 0x34], eax
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 0xd8]
dec eax
sub eax, esi
jl 0x4ce884
inc eax
mov dword [esp + 0x80], eax
imul eax, esi, 0x27
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x34]
sub dword [edx + eax*4 + 0xdc], ecx
inc esi
dec dword [esp + 0x80]
jne 0x4ce868
dec edi
cmp edi, 0xffffffff
jne 0x4ce7f9
mov eax, dword [esp + 0x18]
call fcn.00656ff0
mov eax, dword [esp + 8]
call fcn.00548140
cmp eax, dword [esp + 0x50]
jne 0x4ce4e8
jmp 0x4ceaa8
mov eax, dword [esp + 8]
call fcn.00548140
dec eax
cmp eax, 0
jl 0x4ceaa8
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 8]
call fcn.00548170
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x88]
mov edx, dword [eax]
mov eax, dword [esp + 0x54]
call fcn.005f48fc
imul esi, eax, 0x27
mov eax, dword [esp + 0x88]
mov edx, dword [eax]
mov eax, dword [esp + 0x54]
call fcn.005f4be0
mov eax, dword [eax + 0x275c]
mov edx, dword [ebx + 0x24c]
mov edx, dword [edx + 0x1c]
mov eax, dword [edx + eax*4]
lea eax, [eax + esi*4 + 0xdc]
mov dword [esp + 0x8c], eax
cmp ebp, dword [esp + 0x10]
jne 0x4ce94b
mov eax, dword [esp + 0x10]
call fcn.0063cd0c
test eax, eax
sete al
mov edx, dword [esp + 0x8c]
mov byte [edx + 0x14], al
mov byte [ebx + 0x38c], 1
jmp 0x4cea99
cmp ebp, dword [ebx + 0x204]
jne 0x4ce963
mov eax, dword [esp + 0x8c]
mov byte [eax + 0x15], 0
jmp 0x4cea99
cmp ebp, dword [ebx + 0x208]
jne 0x4ce97b
mov eax, dword [esp + 0x8c]
mov byte [eax + 0x15], 1
jmp 0x4cea99
cmp ebp, dword [ebx + 0x20c]
jne 0x4ce993
mov eax, dword [esp + 0x8c]
mov byte [eax + 0x15], 2
jmp 0x4cea99
cmp ebp, dword [ebx + 0x210]
jne 0x4ce9e0
mov eax, dword [ebx + 0x210]
call fcn.0063e0c8
test al, al
je 0x4ce9c3
mov eax, dword [esp + 0x8c]
add eax, 4
mov edx, 4
call fcn.00629af0
jmp 0x4cea99
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x8c]
lea esi, [eax + 0x18]
lea edi, [edx + 4]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
jmp 0x4cea99
cmp ebp, dword [ebx + 0x214]
jne 0x4cea11
mov eax, dword [ebx + 0x214]
call fcn.00421eb0
test al, al
je 0x4cea11
mov eax, dword [ebx + 0x214]
call fcn.00421b30
mov edx, dword [esp + 0x8c]
mov dword [edx + 4], eax
jmp 0x4cea99
cmp ebp, dword [ebx + 0x218]
jne 0x4cea3f
mov eax, dword [ebx + 0x218]
call fcn.00421eb0
test al, al
je 0x4cea3f
mov eax, dword [ebx + 0x218]
call fcn.00421b30
mov edx, dword [esp + 0x8c]
mov dword [edx + 8], eax
jmp 0x4cea99
cmp ebp, dword [ebx + 0x21c]
jne 0x4cea6d
mov eax, dword [ebx + 0x21c]
call fcn.00421eb0
test al, al
je 0x4cea6d
mov eax, dword [ebx + 0x21c]
call fcn.00421b30
mov edx, dword [esp + 0x8c]
mov dword [edx + 0xc], eax
jmp 0x4cea99
cmp ebp, dword [ebx + 0x220]
jne 0x4cea99
mov eax, dword [ebx + 0x220]
call fcn.00421eb0
test al, al
je 0x4cea99
mov eax, dword [ebx + 0x220]
call fcn.00421b30
mov edx, dword [esp + 0x8c]
mov dword [edx + 0x10], eax
dec dword [esp + 0x50]
cmp dword [esp + 0x50], 0xffffffff
jne 0x4ce8c6
mov eax, dword [esp + 8]
call fcn.005485c8
cmp ebp, dword [ebx + 0x234]
jne 0x4cec19
cmp byte [ebx + 0x360], 0xff
je 0x4cec19
xor eax, eax
mov al, byte [ebx + 0x360]
mov edx, eax
shl eax, 3
sub eax, edx
lea eax, [ebx + eax*4 + 0x258]
mov dword [esp + 0x90], eax
cmp dword [ebx + 0x364], 0
je 0x4ceb8f
call fcn.00660e34
sub eax, dword [ebx + 0x364]
cmp eax, 0x3e8
jle 0x4ceb8f
mov eax, dword [esp + 0x90]
cmp dword [eax + 4], 1
jl 0x4cec19
mov eax, dword [esp + 0x90]
cmp dword [eax + 4], 0xff
jge 0x4cec19
mov eax, dword [esp + 0x90]
mov edx, dword [eax]
mov eax, dword [ebx + 0x22c]
mov eax, dword [eax + 0x120]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov dword [esp + 0x50], eax
cmp dword [esp + 0x50], 0
jl 0x4ceb63
mov edx, dword [esp + 0x50]
mov eax, dword [ebx + 0x22c]
call fcn.0063cd28
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 8]
mov edx, dword [ebx + 0x230]
mov edx, dword [edx + 0x188]
mov dword [edx + 0x160], eax
mov eax, dword [ebx + 0x230]
mov edx, dword [eax]
call dword [edx + 0x38]
jmp 0x4cec19
mov al, byte [0x4cedb0]
mov byte [esp + 0x1c], al
mov al, byte [0x4cedb0]
mov byte [esp + 0x1d], al
mov eax, dword [esp + 0x90]
cmp dword [eax + 4], 1
jne 0x4cebf6
mov eax, dword [ebx + 0x22c]
call fcn.0063cca8
mov edx, dword [esp + 0x90]
cmp eax, dword [edx]
jne 0x4cebf6
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 8]
mov edx, dword [ebx + 0x230]
mov edx, dword [edx + 0x188]
cmp eax, dword [edx + 0x160]
jne 0x4cebf6
mov al, byte [ebx + 0x360]
cmp al, 7
ja 0x4cec08
and eax, 0x7f
bts dword [esp + 0x1c], eax
jmp 0x4cec08
mov al, byte [ebx + 0x360]
cmp al, 7
ja 0x4cec08
and eax, 0x7f
bts dword [esp + 0x1d], eax
push 0
mov cl, byte [esp + 0x21]
mov dl, byte [esp + 0x20]
mov eax, ebx
call fcn.004cf7ac
cmp ebp, dword [ebx + 0x23c]
jne 0x4cec2d
mov eax, dword [ebx + 0x23c]
mov dword [esp + 0x20], eax
jmp 0x4cec4d
cmp ebp, dword [ebx + 0x240]
jne 0x4cec47
mov eax, dword [ebx + 0x240]
mov eax, dword [eax + 0x188]
mov dword [esp + 0x20], eax
jmp 0x4cec4d
xor eax, eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x4ced9c
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x160], 0x80000000
je 0x4ced9c
mov eax, dword [ebx + 0x238]
call fcn.0063cca8
mov ecx, eax
mov dl, 1
mov eax, ebx
call fcn.004d02c8
mov dword [esp + 0x94], eax
xor eax, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
call fcn.00548140
mov edi, eax
dec edi
cmp edi, 0
jl 0x4ced81
mov edx, edi
mov eax, dword [esp + 0x94]
call fcn.00548170
mov esi, eax
mov edx, dword [esi]
mov eax, dword [esp + 0x54]
call fcn.005f4be0
mov eax, dword [eax + 0x275c]
mov edx, dword [ebx + 0x24c]
mov edx, dword [edx + 0x1c]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x98], eax
cmp dword [esp + 0x50], 0
jne 0x4ced51
mov eax, dword [esp + 0x98]
cmp dword [eax + 0xcc], 0xff000000
je 0x4ced3e
mov eax, dword [esp + 0x98]
mov esi, dword [eax + 0xd8]
dec esi
cmp esi, 0
jl 0x4ced3e
imul eax, esi, 0x27
mov edx, dword [esp + 0x98]
lea eax, [edx + eax*4 + 0xdc]
cmp dword [eax + 0x88], 0xff000000
jne 0x4ced38
mov edx, dword [esp + 0x98]
mov edx, dword [edx + 0xcc]
mov dword [eax + 0x88], edx
dec esi
cmp esi, 0xffffffff
jne 0x4ced08
mov eax, dword [esp + 0x98]
mov dword [eax + 0xcc], 0xff000000
jmp 0x4ced77
mov edx, dword [esi]
mov eax, dword [esp + 0x54]
call fcn.005f48fc
imul eax, eax, 0x27
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x160]
mov dword [edx + eax*4 + 0x164], ecx
dec edi
cmp edi, 0xffffffff
jne 0x4ceca7
inc dword [esp + 0x50]
cmp dword [esp + 0x50], 2
jne 0x4cec8f
mov eax, dword [esp + 0x94]
call fcn.005485c8
mov edx, ebp
mov eax, ebx
call fcn.004d22fc
add esp, 0xe0
pop ebp
pop edi
pop esi
pop ebx
ret