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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x704034]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
push edi
mov dword [esp + 0x64], edx
mov esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x8c], eax
or eax, 0xffffffff
mov dword [esp + 0x5c], eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x24], 0
mov dword [esp + 0x94], eax
mov dword [esp + 0x74], eax
mov byte [esp + 0x17], al
mov byte [esp + 0x2f], al
mov dword [esp + 0x4c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], eax
jne 0x4cd91d
cmp byte [eax + 0x51], 0
jne 0x4cd91d
mov dword [esp + 0x54], 0
test ecx, ecx
je 0x4cc76a
test dword [ecx + 8], 0x200
je 0x4cc76a
cmp dword [ecx + 0x34], 0
jne 0x4cc76a
mov edx, dword [ecx]
mov dword [esp + 0x4c], edx
mov edx, ecx
mov dword [ecx], 0
mov ecx, eax
push 1
call fcn.004d5d70
add esp, 4
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x64]
mov ecx, esi
call fcn.004c4fb0
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je 0x4cd919
mov ecx, dword [edi + 0x48]
mov edx, 0xfff0bdc0
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x4cc7b3
mov eax, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x4cc7b3
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x4cc7a7
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x48]
mov ecx, edx
add ecx, ecx
mov edx, 0x12
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov ecx, esi
push 0
push dword [edi]
call fcn.004bcbb0
add esp, 0xc
test eax, eax
jne 0x4cd919
mov eax, dword [edi + 0x24]
mov edx, edi
shr eax, 5
mov ecx, esi
and eax, 0xffffff01
mov dword [esp + 0x84], eax
lea eax, [esp + 0x80]
push eax
push 0
push 0x7b
call fcn.004e21e0
add esp, 0xc
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0xc]
mov edx, edi
mov ecx, esi
mov dword [esp + 0x58], eax
call fcn.004c05c0
test eax, eax
jne 0x4cd919
push dword [esp + 0x80]
mov edx, edi
mov ecx, esi
call fcn.004c50c0
add esp, 4
test eax, eax
jne 0x4cd919
mov ecx, esi
call fcn.004d8f10
mov edi, eax
mov dword [esp + 0x3c], edi
test edi, edi
je 0x4cd919
cmp byte [esi + 0x12], 0
jne 0x4cc85f
or dword [edi + 0x98], 0x20
cmp dword [esp + 0x40], 0
jne 0x4cc871
cmp dword [esp + 0x60], 0
jne 0x4cc871
xor edx, edx
jmp 0x4cc876
mov edx, 1
push dword [esp + 0x1c]
mov ecx, esi
call fcn.004c3820
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x4cc8ac
push dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, esi
push dword [ebp + 0x10]
push dword [esp + 0x48]
call fcn.004cf9c0
add esp, 0xc
test eax, eax
jne 0x4cd87a
push dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.004cc320
mov ecx, dword [esi + 0x2c]
add esp, 4
mov edx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
lea eax, [ecx + 1]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x38], eax
movsx eax, word [edx + 0x2a]
inc eax
add eax, ecx
mov dword [esi + 0x2c], eax
cmp dword [edx + 0x38], 0
je 0x4cc8f1
add ecx, 2
inc eax
mov dword [esp + 0x38], ecx
mov dword [esi + 0x2c], eax
jmp 0x4cc8f5
mov ecx, dword [esp + 0x38]
lea eax, [ecx + 1]
mov ecx, dword [edx + 0x24]
shr ecx, 7
not cl
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x10]
and ecx, 0xffffff01
mov dword [esp + 0x24], ecx
test eax, eax
je 0x4cca4c
xor ecx, ecx
cmp dword [eax + 4], ecx
jle 0x4cc93b
mov edi, eax
mov eax, dword [edi]
mov dword [eax + ecx*8 + 4], 0xffffffff
inc ecx
cmp ecx, dword [edi + 4]
jl 0x4cc923
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0
mov dword [esp + 0x18], 0
jle 0x4cca4c
nop dword [eax]
movsx eax, word [edx + 0x2a]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
test eax, eax
jle 0x4cc9f3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
lea eax, [eax + ecx*8]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x9c], eax
mov edx, dword [eax]
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
call fcn.0047b390
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x4cc9b8
mov eax, dword [esp + 0x9c]
inc ecx
add eax, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x9c], eax
cmp ecx, dword [esp + 0x30]
jl 0x4cc981
mov edx, dword [esp + 0xc]
jmp 0x4cc9f3
mov eax, dword [esp + 0x78]
xor edx, edx
cmp dword [esp + 0x18], ecx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x24]
movzx eax, al
cmove edx, eax
mov dword [esp + 0x30], edx
mov byte [esp + 0x24], dl
mov edx, dword [esp + 0xc]
movsx eax, word [edx + 0x28]
cmp ecx, eax
jne 0x4cc9f3
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov al, byte [esp + 0x30]
mov dword [esp + 0x24], eax
movsx eax, word [edx + 0x2a]
cmp ecx, eax
jl 0x4cca36
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx + eax*8]
call fcn.004b1e10
test eax, eax
je 0x4ccb58
cmp byte [esp + 0x84], 0
jne 0x4ccb58
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov byte [esp + 0x24], 0
jmp 0x4cca3a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + 4]
jl 0x4cc950
cmp dword [esp + 0x40], 0
je 0x4ccc59
inc dword [esi + 0x2c]
mov edx, 0xd
mov eax, dword [edi + 0x6c]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x30], eax
inc eax
push eax
push 0
mov dword [esp + 0x80], ecx
push ecx
mov ecx, edi
call fcn.004997a0
mov eax, dword [esp + 0x84]
add esp, 0xc
mov edx, dword [esp + 0x40]
mov ecx, esi
mov dword [esp + 0xa4], eax
xor eax, eax
cmp byte [esp + 0x24], al
mov byte [esp + 0xa0], 0xd
cmovne eax, dword [esp + 0x70]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb0], 0
movsx eax, word [eax + 0x2a]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xa0]
push eax
call fcn.004de5b0
mov ecx, dword [esp + 0xac]
add esp, 4
mov dword [esp + 0x88], ecx
test eax, eax
jne 0x4cd919
mov eax, dword [esp + 0x48]
cmp byte [eax + 0x51], 0
jne 0x4cd919
cmp dword [esi + 0x24], 0
jne 0x4cd919
mov edx, dword [esp + 0x78]
mov ecx, edi
call fcn.00499ed0
mov edx, dword [esp + 0x30]
mov ecx, edi
call fcn.0049a2c0
cmp dword [esp + 0x60], 0
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
jne 0x4ccb82
push dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.004cc240
add esp, 4
test eax, eax
jne 0x4ccb82
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
jmp 0x4cccab
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
push dword [eax + ecx*8]
push 0
push dword [esp + 0x6c]
push 0x708998
push esi
call fcn.0047b1c0
add esp, 0x14
mov byte [esi + 0x11], 1
jmp 0x4cd91d
mov edx, dword [esi + 0x28]
mov ecx, esi
mov byte [esp + 0x17], 1
mov dword [esp + 0x34], edx
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
call fcn.004b7a60
mov edi, eax
call fcn.004b7a60
push dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
push edx
mov edx, 0x70
mov dword [esp + 0x30], eax
call fcn.004998d0
mov eax, dword [esp + 0xac]
mov edx, 0xe
mov ecx, dword [esp + 0x44]
push eax
mov dword [esp + 0x60], eax
call fcn.00499870
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov edx, 0x5c
mov esi, eax
push edi
push dword [esp + 0x28]
push dword [esp + 0x90]
call fcn.004997a0
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov edx, 0x79
push dword [esp + 0x28]
push dword [esp + 0x38]
call fcn.004998d0
push dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov edx, 0x7a
push edi
push dword [esp + 0x44]
call fcn.004997a0
mov ecx, dword [esp + 0x50]
add esp, 0x14
mov edx, esi
call fcn.00499940
mov ecx, dword [esp + 0x3c]
mov edx, esi
call fcn.0049a2c0
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.004b7a80
mov edx, dword [esp + 0x28]
call fcn.004b7a80
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
jmp 0x4cccab
mov ecx, dword [esp + 0x4c]
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xa0], esi
mov dword [esp + 0x34], 0xffffffff
test ecx, ecx
je 0x4ccca5
mov eax, dword [ecx]
mov edx, ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x24], eax
call fcn.004af070
test eax, eax
jne 0x4cd919
mov eax, dword [esp + 0x24]
jmp 0x4cccab
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0xc]
jne 0x4cccc2
test eax, eax
jle 0x4cccc2
movsx eax, word [ecx + 0x28]
mov dword [esp + 0x5c], eax
movsx eax, word [ecx + 0x2a]
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
cmp eax, 2
jl 0x4ccd21
mov edx, dword [ecx + 4]
add eax, 0xfffffffe
shr eax, 1
add edx, 0x1f
inc eax
mov dword [esp + 0x30], eax
add eax, eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
movzx eax, byte [edx - 0x10]
lea edx, [edx + 0x20]
shr eax, 1
and eax, 1
add dword [esp + 0x28], eax
movzx eax, byte [edx - 0x20]
shr eax, 1
and eax, 1
add dword [esp + 0x18], eax
sub edi, 1
jne 0x4cccf3
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
movsx eax, word [ecx + 0x2a]
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x1c], eax
jge 0x4ccd49
shl dword [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
movzx eax, byte [esi + eax + 0xf]
mov esi, dword [esp + 0x20]
shr eax, 1
and eax, 1
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
add eax, edx
mov edx, dword [esp + 0x7c]
add edx, eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4ccd8c
cmp dword [esp + 0x24], eax
je 0x4ccdac
movsx eax, word [ecx + 0x2a]
sub eax, edx
mov edx, dword [esp + 0x24]
cmp edx, eax
je 0x4ccdac
push edx
push eax
push 0
push dword [esp + 0x70]
push 0x708964
push esi
call fcn.0047b1c0
add esp, 0x18
jmp 0x4cd919
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x24]
cmp edx, eax
je 0x4ccdac
push eax
push edx
push 0x7089e8
push esi
call fcn.0047b1c0
add esp, 0x10
jmp 0x4cd919
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x20]
and eax, 0x80
or eax, 0
je 0x4ccdec
cmp byte [esi + 0x12], 0
jne 0x4ccdec
cmp dword [esi + 0x78], 0
jne 0x4ccdec
inc dword [esi + 0x2c]
mov edx, 0x46
mov eax, dword [esi + 0x2c]
mov ecx, edi
push eax
push 0
mov dword [esp + 0xa0], eax
call fcn.004998d0
mov ecx, dword [esp + 0x14]
add esp, 8
cmp dword [esp + 0x58], 0
jne 0x4cce8a
lea eax, [esp + 0x90]
mov edx, ecx
push eax
lea eax, [esp + 0x54]
mov ecx, esi
push eax
push 0
push 0xffffffffffffffff
push 0
push 0x62
call fcn.004cf6a0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x94], eax
push 0
lea eax, [eax*4 + 8]
push eax
call fcn.00478070
add esp, 0x20
mov dword [esp + 0x68], eax
test eax, eax
je 0x4cd919
mov ecx, dword [esp + 0xc]
xor edx, edx
mov eax, dword [ecx + 8]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x7c], edx
jle 0x4cce79
mov edi, eax
inc dword [esi + 0x2c]
mov ecx, dword [esp + 0x68]
mov eax, dword [esi + 0x2c]
mov dword [ecx + edx*4], eax
inc edx
movzx eax, word [edi + 0x34]
add dword [esi + 0x2c], eax
mov edi, dword [edi + 0x14]
cmp edx, dword [esp + 0x7c]
jl 0x4cce53
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov esi, dword [esp + 0x68]
mov dword [esi + edx*4], eax
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x4ccefb
cmp dword [ecx + 0x38], 0
je 0x4ccead
push dword [ecx]
push 0x7089b8
push esi
call fcn.0047b1c0
jmp 0x4cd916
mov edx, dword [edx]
mov ecx, esi
call fcn.004c1b10
test eax, eax
jne 0x4cd919
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x34], ecx
cmp dword [edx], 0
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x90]
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], eax
je 0x4ccefb
push edx
mov edx, dword [esp + 0x68]
mov ecx, esi
call fcn.004e55a0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x4ccf22
push dword [esp + 0x34]
mov edx, 0x24
mov ecx, edi
call fcn.00499870
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x78], eax
jmp 0x4ccf46
cmp dword [esp + 0x40], 0
je 0x4ccf49
push dword [esp + 0x54]
mov edx, 0xe
mov ecx, edi
call fcn.00499870
mov ecx, eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], ecx
add esp, 4
dec dword [esi + 0x38]
test byte [esp + 0x80], 1
mov eax, dword [esi + 0x38]
mov dword [esp + 0x28], eax
je 0x4cd1e2
mov eax, dword [esp + 0xc]
mov ecx, esi
movsx edx, word [eax + 0x2a]
inc edx
call fcn.004b7aa0
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
push eax
test ecx, ecx
jns 0x4ccf94
push 0xffffffffffffffff
mov edx, 0x46
mov ecx, edi
call fcn.004998d0
add esp, 8
jmp 0x4cd009
cmp byte [esp + 0x1b], 0
je 0x4ccfb1
push ecx
push dword [esp + 0x3c]
mov edx, 0x5a
mov ecx, edi
call fcn.004997a0
add esp, 0xc
jmp 0x4ccfc6
mov eax, dword [esp + 0x50]
lea edx, [ecx + ecx*2]
mov ecx, esi
mov edx, dword [eax + edx*8 + 4]
call fcn.004b5ff0
add esp, 4
push dword [esp + 0x18]
mov edx, 0x33
mov ecx, edi
call fcn.00499870
add esp, 4
mov edx, 0x46
mov ecx, edi
mov esi, eax
push dword [esp + 0x18]
push 0xffffffffffffffff
call fcn.004998d0
mov edx, esi
mov ecx, edi
call fcn.0049a2c0
push dword [esp + 0x20]
mov edx, 0xf
mov ecx, edi
call fcn.00499870
add esp, 0xc
mov ecx, dword [esp + 0xc]
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x2a]
jge 0x4cd15c
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
inc edx
or eax, 0xffffffff
mov dword [esp + 0x1c], edx
sub eax, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cd06d
xor esi, esi
cmp dword [eax + 4], esi
jle 0x4cd06d
mov ecx, dword [eax]
mov edi, dword [esp + 0x80]
add ecx, 4
lea eax, [edx + edi]
cmp dword [ecx], eax
mov eax, dword [esp + 0x10]
je 0x4cd065
inc esi
add ecx, 8
cmp esi, dword [eax + 4]
jl 0x4cd051
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
cmp byte [esp + 0x17], 0
jne 0x4cd07b
cmp dword [esp + 0x4c], 0
je 0x4cd084
test eax, eax
je 0x4cd0ef
cmp esi, dword [eax + 4]
jl 0x4cd0ef
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + ecx + 4]
test eax, eax
je 0x4cd0b5
cmp byte [eax], 0xab
jne 0x4cd0b5
push edx
push dword [eax + 0x1c]
mov eax, dword [esp + 0x28]
mov edx, 0x4e
mov ecx, dword [eax + 8]
call fcn.004998d0
add esp, 8
jmp 0x4cd124
mov ecx, dword [esp + 0x20]
push edx
mov edx, eax
call fcn.004b4cf0
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edx
je 0x4cd128
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4cd128
push edx
push dword [esp + 0x34]
mov edx, 0x4f
call fcn.004998d0
add esp, 8
jmp 0x4cd124
cmp byte [esp + 0x17], 0
push edx
je 0x4cd10d
push esi
push dword [esp + 0x3c]
mov edx, 0x5a
mov ecx, edi
call fcn.004997a0
add esp, 0xc
jmp 0x4cd124
mov eax, dword [esp + 0x50]
lea edx, [esi + esi*2]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + edx*8 + 4]
call fcn.004b60e0
add esp, 4
mov edx, dword [esp + 0x1c]
add dword [esp + 0x54], 0x10
lea eax, [esi + 1]
mov ecx, dword [esp + 0x80]
inc edx
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], edx
cmovne eax, esi
add ecx, edx
mov esi, eax
mov eax, dword [esp + 0xc]
movsx eax, word [eax + 0x2a]
cmp ecx, eax
mov ecx, dword [esp + 0xc]
jl 0x4cd036
cmp dword [esp + 0x58], 0
jne 0x4cd175
mov eax, dword [esp + 0x18]
mov edx, ecx
inc eax
mov ecx, edi
push eax
call fcn.004cc120
add esp, 4
mov edx, dword [esp + 0xc]
push dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push dword [ebp + 0x10]
movsx eax, word [edx + 0x2a]
mov esi, dword [esp + 0x28]
sub ecx, eax
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x70]
mov ecx, esi
push 1
push 0
push 0x7b
call fcn.004e2bf0
mov ecx, dword [esp + 0x28]
add esp, 0x1c
movsx eax, word [ecx + 0x2a]
inc eax
cmp eax, 1
jne 0x4cd1d1
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4cd1e6
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x4cd1e6
movzx eax, al
mov dword [esi + eax*4 + 0x94], edx
inc byte [esi + 0x13]
jmp 0x4cd1e6
cmp eax, dword [esi + 0x1c]
jle 0x4cd1e6
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x20], eax
jmp 0x4cd1e6
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x58], 0
jne 0x4cd6a0
cmp dword [ecx + 0x38], 0
je 0x4cd210
push dword [esp + 0x6c]
mov edx, 0x49
mov ecx, edi
push 0
call fcn.004998d0
mov ecx, dword [esp + 0x14]
add esp, 8
mov eax, dword [esp + 0x5c]
test eax, eax
js 0x4cd300
cmp byte [esp + 0x17], 0
je 0x4cd23e
mov esi, dword [esp + 0x38]
mov edx, 0x5a
push esi
push eax
push dword [esp + 0x3c]
mov ecx, edi
call fcn.004997a0
add esp, 0xc
jmp 0x4cd28f
cmp dword [esp + 0x40], 0
je 0x4cd263
mov esi, dword [esp + 0x38]
mov edx, 0x4e
add eax, dword [esp + 0x88]
mov ecx, edi
push esi
push eax
call fcn.004998d0
add esp, 8
jmp 0x4cd28f
mov edx, dword [esp + 0x4c]
lea eax, [eax + eax*2]
mov edx, dword [edx + eax*8 + 4]
cmp byte [edx], 0x75
jne 0x4cd27d
cmp dword [ecx + 0x38], 0
je 0x4cd310
push dword [esp + 0x38]
mov ecx, esi
call fcn.004b5ff0
mov esi, dword [esp + 0x3c]
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
cmp dword [eax + 0x38], 0
jne 0x4cd2d5
push esi
mov edx, 0x33
call fcn.00499870
add esp, 4
mov edx, 0x79
mov ecx, edi
mov esi, eax
push dword [esp + 0x44]
push dword [esp + 0x3c]
push dword [esp + 0x58]
call fcn.004997a0
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.0049a2c0
mov esi, dword [esp + 0x38]
jmp 0x4cd2ea
mov eax, dword [edi + 0x6c]
mov edx, 0x32
add eax, 2
push eax
push esi
call fcn.004998d0
add esp, 8
push esi
mov edx, 0xf
mov ecx, edi
call fcn.00499870
mov esi, dword [esp + 0x24]
add esp, 4
jmp 0x4cd347
cmp dword [ecx + 0x38], 0
jne 0x4cd332
cmp byte [esp + 0x84], 0
jne 0x4cd332
push dword [esp + 0x44]
mov edx, 0x79
mov ecx, edi
push dword [esp + 0x3c]
push dword [esp + 0x58]
call fcn.004997a0
add esp, 0xc
mov byte [esp + 0x2f], 1
jmp 0x4cd347
push dword [esp + 0x38]
mov edx, 0x49
mov ecx, edi
push 0
call fcn.004998d0
add esp, 8
push dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov ecx, esi
call fcn.004cc4b0
mov edx, dword [esp + 0x10]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x5c], 0
add esp, 4
mov dword [esp + 0x18], ecx
cmp ax, word [edx + 0x2a]
jge 0x4cd448
mov dword [esp + 0x44], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x1c], eax
movsx eax, word [edx + 0x28]
cmp ecx, eax
jne 0x4cd3ec
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cd3b3
push 0
push 0
push dword [esp + 0x24]
mov edx, 0x4a
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4cd42a
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4cd42e
cmp dword [esp + 0x10], 0
jne 0x4cd4ea
mov esi, dword [esp + 0x44]
mov eax, dword [edx + 4]
test byte [eax + esi + 0xf], 2
mov esi, dword [esp + 0x20]
je 0x4cd4e2
inc dword [esp + 0x58]
mov edx, dword [edx + 4]
mov ecx, esi
mov eax, dword [esp + 0x44]
push dword [esp + 0x1c]
mov edx, dword [edx + eax + 4]
call fcn.004b6050
add esp, 4
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
movsx eax, word [edx + 0x2a]
inc ecx
add dword [esp + 0x44], 0x10
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x4cd380
cmp dword [edx + 0x38], 0
je 0x4cd5d3
mov eax, dword [edx + 0x40]
mov dword [esp + 0x84], eax
test eax, eax
je 0x4cd476
mov ecx, dword [esp + 0x48]
cmp dword [eax], ecx
je 0x4cd46f
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4cd464
mov dword [esp + 0x84], eax
mov ecx, esi
call fcn.004e7cb0
mov eax, dword [esp + 0xc]
mov edx, 0xa
push 0xfffffffffffffff4
push dword [esp + 0x88]
mov ecx, edi
movsx eax, word [eax + 0x2a]
push dword [esp + 0x74]
add eax, 2
push eax
push 1
call fcn.00499c10
mov eax, dword [edi + 0x6c]
add esp, 0x14
test eax, eax
jle 0x4cd4cf
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xb
movzx edx, cx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov dword [esp + 0x30], 2
cmove edx, dword [esp + 0x30]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi + 0x74]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x4cd6a0
mov eax, ecx
sub eax, dword [esp + 0x58]
jmp 0x4cd529
mov esi, dword [esp + 0x10]
xor eax, eax
cmp dword [esi + 4], eax
mov esi, dword [esp + 0x20]
jle 0x4cd531
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, dword [ecx]
add ecx, 4
nop word [eax + eax]
cmp dword [ecx], edx
je 0x4cd51d
inc eax
add ecx, 8
cmp eax, dword [edi + 4]
jl 0x4cd510
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
test eax, eax
js 0x4cd411
cmp dword [esp + 0x24], 0
je 0x4cd411
cmp dword [esp + 0x10], 0
mov esi, dword [esp + 0x20]
je 0x4cd558
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 4]
mov esi, dword [esp + 0x20]
jge 0x4cd411
cmp byte [esp + 0x17], 0
je 0x4cd57c
push dword [esp + 0x1c]
mov edx, 0x5a
mov ecx, edi
push eax
push dword [esp + 0x3c]
call fcn.004997a0
add esp, 0xc
jmp 0x4cd42a
cmp dword [esp + 0x40], 0
je 0x4cd5b8
mov esi, dword [esp + 0x88]
cmp esi, dword [esp + 0x70]
mov esi, dword [esp + 0x20]
je 0x4cd432
push dword [esp + 0x1c]
add eax, dword [esp + 0x8c]
mov edx, 0x4f
push eax
mov ecx, edi
call fcn.004998d0
add esp, 8
jmp 0x4cd42a
push dword [esp + 0x1c]
lea edx, [eax + eax*2]
mov ecx, esi
mov eax, dword [esp + 0x50]
mov edx, dword [eax + edx*8 + 4]
call fcn.004b5ff0
jmp 0x4cd427
push dword [esp + 0x8c]
lea eax, [esp + 0x34]
mov ecx, esi
push 0
push eax
push dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
push dword [ebp + 0x10]
shr eax, 0x1f
xor al, 1
movzx eax, al
push eax
push 0
push dword [esp + 0x88]
push dword [esp + 0xb0]
push dword [esp + 0x74]
push dword [esp + 0x90]
call fcn.004cda30
mov edx, dword [esp + 0x38]
add esp, 0x2c
mov ecx, esi
push 0
push 0
push dword [esp + 0x74]
push 0
call fcn.004caf00
add esp, 0x10
cmp dword [esp + 0x30], 0
je 0x4cd671
cmp dword [esp + 0x60], 0
jne 0x4cd66d
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x4cd671
mov eax, dword [esp + 0xc]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.0047cae0
add esp, 4
cmp dword [eax + 8], 0
je 0x4cd671
xor eax, eax
jmp 0x4cd676
mov eax, 1
mov edx, dword [esp + 0xc]
mov ecx, esi
push eax
movzx eax, byte [esp + 0x33]
push eax
push 0
push dword [esp + 0x74]
push dword [esp + 0x7c]
push dword [esp + 0xa4]
push dword [esp + 0x68]
call fcn.004cf3f0
add esp, 0x1c
mov edx, dword [esp + 0x98]
test edx, edx
je 0x4cd6fc
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cd6c9
push 0
push 1
push edx
mov edx, 0x53
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4cd6fc
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x53
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x60], 0
je 0x4cd731
mov ecx, dword [esp + 0xc]
push dword [esp + 0x28]
mov edx, dword [esp + 0x74]
push dword [ebp + 0x10]
movsx eax, word [ecx + 0x2a]
sub edx, eax
sub edx, 2
push edx
mov edx, dword [esp + 0x6c]
push ecx
push 2
push 0
push 0x7b
mov ecx, esi
call fcn.004e2bf0
add esp, 0x1c
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cd74f
push edx
mov edx, edi
call fcn.00499f40
add esp, 4
jmp 0x4cd758
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
cmp byte [esp + 0x17], 0
je 0x4cd83c
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cd787
mov edx, dword [esp + 0x74]
mov ecx, edi
push 0
push edx
push dword [esp + 0x3c]
mov edx, 5
call fcn.00499760
add esp, 0xc
jmp 0x4cd7ba
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x94]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x4cd7cb
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4cd7da
mov eax, 0x716eec
jmp 0x4cd7e3
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cd807
push 0
push 0
push dword [esp + 0x3c]
mov edx, 0x75
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4cd87a
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4cd87a
cmp dword [esp + 0x40], 0
je 0x4cd87a
mov edx, dword [esp + 0x74]
mov ecx, edi
call fcn.00499940
mov ecx, dword [esp + 0x94]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x4cd85f
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4cd86e
mov eax, 0x716eec
jmp 0x4cd877
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp byte [esi + 0x12], 0
jne 0x4cd893
cmp dword [esi + 0x78], 0
jne 0x4cd893
cmp dword [esi + 0x70], 0
je 0x4cd893
mov ecx, esi
call fcn.004cc520
mov edx, dword [esp + 0x98]
test edx, edx
je 0x4cd919
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cd8c0
push 0
push 1
push edx
mov edx, 0x51
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4cd8ef
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x51
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, 1
mov ecx, edi
call fcn.0049b9c0
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x4cd919
mov ecx, dword [edi + 0x74]
mov edx, 0x708a0c
push 0
push 1
push 0xffffffffffffffff
call fcn.00498ac0
add esp, 0xc
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x48]
mov ecx, esi
mov edx, dword [esp + 0x64]
call fcn.004c2fd0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4cd93d
mov edx, eax
mov ecx, esi
call fcn.004b15f0
mov edx, dword [esp + 0x8c]
mov ecx, esi
call fcn.004e5390
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4cd961
push 1
mov edx, eax
mov ecx, esi
call fcn.004d5d70
add esp, 4
mov edx, edi
mov ecx, esi
call fcn.004c2bc0
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4cd9d7
test esi, esi
je 0x4cd9ce
cmp dword [esi + 0x1e8], 0
je 0x4cd99c
mov edx, ecx
mov ecx, esi
call fcn.00477ca0
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0062063b
mov esp, ebp
pop ebp
ret
cmp ecx, dword [esi + 0x138]
jb 0x4cd9ce
cmp ecx, dword [esi + 0x13c]
jae 0x4cd9ce
mov eax, dword [esi + 0x134]
mov dword [ecx], eax
mov dword [esi + 0x134], ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0062063b
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00477c30
add esp, 4
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.0062063b
mov esp, ebp
pop ebp
ret