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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, ecx
mov dword [esp + 0xc], edx
push ebx
push esi
push edi
mov ebx, dword [eax + 0xc]
mov ecx, ebx
mov edi, dword [eax]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x64], edi
mov dword [esp + 0x24], ebx
call fcn.004a1770
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.004a1770
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov al, byte [ecx + 4]
mov edx, dword [ecx + 0x18]
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 0x70
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [edx]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
je 0x4cb326
cmp byte [edi + 0x1e], 0
mov esi, 1
jne 0x4cb326
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x54], eax
nop
mov eax, dword [ecx]
cmp esi, dword [eax]
mov eax, dword [esp + 0x38]
jg 0x4cb326
mov edx, dword [edx + 0xc]
xor ecx, ecx
test eax, eax
jle 0x4cb297
add edx, 0xe
mov ebx, eax
lea esp, [esp]
movzx eax, word [edx]
cmp eax, esi
je 0x4cb28f
inc ecx
add edx, 0x14
cmp ecx, ebx
jl 0x4cb280
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jne 0x4cb306
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0
push 0
push eax
mov edx, 0x81
mov dword [esp + 0x74], 0
mov ecx, edi
call fcn.004ad6e0
add esp, 8
test eax, eax
je 0x4cb31a
mov edx, dword [esp + 0x2c]
mov ecx, 0x800
or word [eax + 2], cx
mov ecx, dword [esp + 0x1c]
push eax
mov dword [eax + 4], esi
call fcn.004aeb40
mov ecx, dword [esp + 0x58]
mov edx, eax
add esp, 4
mov dword [esp + 0x2c], edx
mov eax, dword [edx + 0xc]
mov word [eax + ecx + 0xe], si
mov eax, dword [esp + 0x38]
inc eax
add ecx, 0x14
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], ecx
jmp 0x4cb30a
mov edx, dword [esp + 0x2c]
inc esi
cmp byte [edi + 0x1e], 0
jne 0x4cb326
mov ecx, dword [esp + 0x18]
jmp 0x4cb260
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [eax*4]
test edi, edi
je 0x4cb3d2
cmp byte [edi + 0x1e], 0
je 0x4cb387
mov dword [esp + 0x54], 0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x18]
mov edx, esi
push 0
mov dword [eax + 0x18], esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esi]
call fcn.004ae3b0
mov ecx, dword [esp + 0x44]
add esp, 4
cmp byte [esp + 0x13], 0x70
mov dword [ecx + 0x18], eax
jne 0x4cb591
mov dword [esp + 0x2c], 0
jmp 0x4cb7c3
cmp byte [edi + 0xe2], 0
je 0x4cb3d2
movzx eax, word [edi + 0xe0]
cmp ecx, eax
jg 0x4cb3d2
mov edx, dword [edi + 0xec]
mov dword [esp + 0x54], edx
test edx, edx
je 0x4cb3d2
mov eax, dword [edx]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x4cb3cc
mov dword [edi + 0xe8], eax
mov dword [esp + 0x14], edx
jmp 0x4cb3f7
push ecx
call fcn.00491390
add esp, 4
mov dword [esp + 0x54], eax
test eax, eax
jne 0x4cb3eb
test edi, edi
je 0x4cb3eb
mov byte [edi + 0x1e], 1
mov dword [esp + 0x14], eax
test eax, eax
je 0x4cb343
mov esi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [esp + 0x38]
mov edx, dword [esi + 0xc]
test eax, eax
jle 0x4cb42c
mov ebx, dword [esp + 0x14]
add edx, 0xe
mov esi, eax
movzx eax, word [edx]
lea edx, [edx + 0x14]
dec eax
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x4cb411
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
lea ecx, [eax + 4]
lea ecx, [eax + ecx*4]
test edi, edi
je 0x4cb487
cmp byte [edi + 0x1e], 0
jne 0x4cb347
cmp byte [edi + 0xe2], 0
je 0x4cb487
movzx eax, word [edi + 0xe0]
cmp ecx, eax
jg 0x4cb487
mov edx, dword [edi + 0xec]
mov dword [esp + 0x50], edx
test edx, edx
je 0x4cb487
mov eax, dword [edx]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x4cb4aa
mov dword [edi + 0xe8], eax
jmp 0x4cb4aa
push ecx
call fcn.00491390
mov edx, eax
add esp, 4
mov dword [esp + 0x50], edx
test edx, edx
jne 0x4cb4aa
test edi, edi
je 0x4cb4a2
mov byte [edi + 0x1e], 1
test edx, edx
je 0x4cb34f
mov ecx, dword [esp + 0x38]
mov word [edx + 6], cx
lea eax, [ecx + 3]
lea eax, [edx + eax*4]
mov dword [edx + 8], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x49]
mov byte [edx + 4], al
xor edx, edx
mov dword [esp + 0x34], edx
test ecx, ecx
jle 0x4cb34f
mov ebx, dword [esp + 0x50]
xor edi, edi
add ebx, 0xc
mov ecx, 0x100
mov eax, dword [esi + 0xc]
mov esi, dword [edi + eax]
test word [esi + 2], cx
je 0x4cb4f4
mov ecx, dword [esi + 0x14]
jmp 0x4cb553
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + edx*4]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x20], eax
test edx, edx
je 0x4cb523
mov ecx, dword [esp + 0x1c]
push eax
call fcn.004c9340
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4cb543
mov eax, dword [esp + 0x20]
jmp 0x4cb525
xor ecx, ecx
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
cmp eax, dword [edx]
jge 0x4cb543
mov edx, dword [edx + 0xc]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + eax*4]
call fcn.004ad2c0
mov ecx, eax
mov edx, dword [esp + 0x34]
mov eax, 0x100
or word [esi + 2], ax
mov dword [esi + 0x14], ecx
mov esi, dword [esp + 0x2c]
mov dword [ebx], ecx
add ebx, 4
mov ecx, dword [esp + 0x50]
mov eax, dword [esi + 0xc]
mov ecx, dword [ecx + 8]
mov al, byte [edi + eax + 0xc]
add edi, 0x14
mov byte [edx + ecx], al
inc edx
mov ecx, 0x100
mov dword [esp + 0x34], edx
cmp edx, dword [esp + 0x38]
jl 0x4cb4e3
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x64]
jmp 0x4cb34f
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
lea ecx, [eax + 1]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
cmp ecx, eax
jg 0x4cb600
xor edx, edx
lea ecx, [esi + 0x70]
jmp 0x4cb5c0
mov esi, dword [ecx]
mov edi, dword [esp + 0x64]
cmp esi, dword [esp + 0x2c]
jl 0x4cb5df
mov ebx, dword [esp + 0x2c]
dec ebx
add eax, ebx
mov ebx, dword [esp + 0x24]
cmp esi, eax
jle 0x4cb5f8
mov eax, dword [esp + 0x20]
inc edx
add ecx, 0x18
cmp edx, 0xa
jl 0x4cb5c0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
add dword [edx + 0x3c], ecx
sub dword [edx + 0x38], ecx
jmp 0x4cb60f
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x48]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x2c], edx
mov dword [esi + 0x48], eax
mov esi, dword [ebx + 0xc]
mov eax, esi
cmp dword [ebx + 0x10], esi
jg 0x4cb627
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cb660
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x2c]
lea ecx, [esi + esi*4]
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x14]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov eax, dword [esp + 0x48]
lea ecx, [eax + 4]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x20], ecx
test edi, edi
je 0x4cb6d0
cmp byte [edi + 0x1e], 0
je 0x4cb685
mov dword [esp + 0x28], 0
jmp 0x4cb7bb
cmp byte [edi + 0xe2], 0
je 0x4cb6d0
movzx eax, word [edi + 0xe0]
cmp ecx, eax
jg 0x4cb6d0
mov esi, dword [edi + 0xec]
mov dword [esp + 0x34], esi
test esi, esi
je 0x4cb6d0
mov eax, dword [esi]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x4cb6ca
mov dword [edi + 0xe8], eax
mov dword [esp + 0x28], esi
jmp 0x4cb6fb
push ecx
call fcn.00491390
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4cb6e9
test edi, edi
je 0x4cb6e9
mov byte [edi + 0x1e], 1
mov dword [esp + 0x34], eax
mov esi, eax
test eax, eax
je 0x4cb7b7
mov ecx, dword [esp + 0x20]
push ecx
push 0
push esi
call fcn.004e1ab0
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov word [esi + 6], cx
lea eax, [ecx + 3]
lea eax, [esi + eax*4]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x49]
mov byte [esi + 4], al
xor esi, esi
test ecx, ecx
jle 0x4cb7bb
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
lea ecx, [edi + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
lea esp, [esp]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x4cb770
push esi
mov ecx, ebx
call fcn.004c9340
mov ecx, dword [esp + 0x34]
add esp, 4
test eax, eax
jne 0x4cb791
jmp 0x4cb772
xor eax, eax
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
cmp esi, dword [edx]
jge 0x4cb791
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov eax, dword [esp + 0x14]
mov edx, dword [edx + eax]
call fcn.004ad2c0
mov ecx, dword [esp + 0x30]
add dword [esp + 0x14], 0x14
mov dword [ecx], eax
add ecx, 4
mov eax, dword [edi + 8]
mov dword [esp + 0x30], ecx
mov byte [esi + eax], 0
inc esi
cmp esi, dword [esp + 0x48]
jl 0x4cb750
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x64]
jmp 0x4cb7bb
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, eax
push str.ORDER
mov dword [eax + 0x1c], 0
mov dword [ecx + 0x24], 0
mov ecx, esi
push dword [eax + 0x18]
call fcn.004acb30
mov eax, dword [esp + 0x48]
add esp, 8
cmp dword [eax + 0x1c], 0
jne 0x4cb807
push str.ORDER
push dword [eax + 0x18]
mov edx, eax
mov ecx, esi
call fcn.004acb30
add esp, 8
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x30], 0
jne 0x4cbb95
mov ecx, esi
call fcn.004b08b0
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x28], 0
je 0x4cbb8b
inc dword [esi + 0x48]
mov eax, dword [esi + 0x48]
mov dword [ecx + 0x30], eax
mov esi, dword [esi + 0xc]
mov dword [esp + 0x24], eax
test esi, esi
jne 0x4cb858
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
call fcn.004a1540
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 0xc], esi
jmp 0x4cb85c
mov ecx, dword [esp + 0x1c]
test esi, esi
je 0x4cbb83
push eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x28]
call fcn.004b2a90
mov ecx, dword [esi + 0xc]
add esp, 4
mov eax, ecx
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cb894
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cb8cd
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [ecx + ecx*4]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
mov word [eax + ecx*4], 0x15
mov byte [eax + ecx*4 + 3], 0
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
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cb8e8
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cb920
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov word [eax + ecx*4], 0x72
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x2c], 0
je 0x4cbb87
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + 0x48]
inc ecx
mov dword [edx + 0x48], ecx
mov dword [eax + 0x34], ecx
inc dword [edx + 0x48]
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x3c], ecx
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004b2a90
mov ecx, dword [esi + 0xc]
add esp, 4
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cb972
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cb9aa
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x15
mov byte [eax + ecx*4 + 3], 0
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
mov byte [esi + 0x6e], 0
mov edx, dword [esi + 0xc]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x10], edx
jg 0x4cb9cf
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4cb9cb
mov dword [esp + 0x14], 1
jmp 0x4cba07
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x70
mov byte [eax + ecx*4 + 3], 0
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
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cba22
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cba5a
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
cmp edx, eax
jle 0x4cba6f
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cba8a
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cbabe
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov word [eax + ecx*4], 0x56
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x24]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], eax
inc eax
mov dword [ecx + 0xc], eax
mov byte [esi + 0x6e], 0
mov edx, dword [esi + 0xc]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x10], edx
jg 0x4cbae3
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4cbadf
mov dword [esp + 0x14], 1
jmp 0x4cbb1b
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x70
mov byte [eax + ecx*4 + 3], 0
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
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cbb36
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cbb6e
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x3c]
inc eax
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov byte [esi + 0x6e], 0
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
cmp edx, eax
jle 0x4cbb83
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
cmp dword [ecx + 0x30], 0
je 0x4cbc69
cmp byte [esp + 0x13], 0x70
jne 0x4cbc69
mov eax, dword [esi + 0x48]
inc eax
mov dword [esp + 0x30], eax
inc eax
mov dword [esi + 0x48], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4cbbc4
lea ecx, [eax + 1]
mov dword [esp + 0x34], ecx
jmp 0x4cbbcb
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov esi, dword [ebx + 0xc]
mov eax, esi
cmp dword [ebx + 0x10], esi
jg 0x4cbbe3
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cbc1c
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
lea ecx, [esi + esi*4]
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cbc2f
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cbc79
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
jmp 0x4cbc79
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x18]
mov esi, dword [esi + 0x28]
test esi, esi
je 0x4cbcc7
mov edx, esi
mov ecx, edi
call fcn.004ade90
cmp word [esi + 2], 0
jl 0x4cbcc7
test edi, edi
je 0x4cbcbe
cmp esi, dword [edi + 0xf0]
jb 0x4cbcbe
cmp esi, dword [edi + 0xf4]
jae 0x4cbcbe
mov eax, dword [edi + 0xec]
mov dword [esi], eax
dec dword [edi + 0xe4]
mov dword [edi + 0xec], esi
jmp 0x4cbcc7
push esi
call fcn.00491400
add esp, 4
mov esi, dword [esp + 0x18]
mov dword [esi + 0x28], 0
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x4cbd1c
mov edx, esi
mov ecx, edi
call fcn.004ade90
cmp word [esi + 2], 0
jl 0x4cbd1c
test edi, edi
je 0x4cbd13
cmp esi, dword [edi + 0xf0]
jb 0x4cbd13
cmp esi, dword [edi + 0xf4]
jae 0x4cbd13
mov eax, dword [edi + 0xec]
mov dword [esi], eax
dec dword [edi + 0xe4]
mov dword [edi + 0xec], esi
jmp 0x4cbd1c
push esi
call fcn.00491400
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov word [esp + 0x88], 0xa
mov dword [esp + 0x90], 0
mov dword [eax + 0x2c], 0
mov ecx, dword [esi + 0x48]
inc ecx
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], ecx
mov word [esp + 0x78], 0xa
mov dword [esp + 0x80], 0
lea eax, [ecx + 1]
mov dword [esp + 0x84], 0
lea edx, [eax + 1]
mov dword [esp + 0x24], eax
lea eax, [edx + 1]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x44], eax
add eax, 2
mov dword [esi + 0x48], eax
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x34], eax
mov eax, edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x20], edi
cmp dword [ebx + 0x10], edi
jg 0x4cbdc0
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4cbdbd
mov dword [esp + 0x20], 1
jmp 0x4cbdf9
mov eax, dword [ebx + 0xc]
inc eax
lea ecx, [edi + edi*4]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x14]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov ecx, dword [esp + 0x40]
mov edx, ecx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x30], eax
lea eax, [esp + 0x88]
push eax
mov ecx, esi
call fcn.004ce550
mov esi, dword [ebx + 0xc]
add esp, 4
cmp dword [ebx + 0x10], esi
jg 0x4cbe32
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cbe6a
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cbe7d
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cbeb5
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x58]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
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
mov byte [ebx + 0x6e], 0
mov ecx, dword [esp + 0x18]
mov edx, ecx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov edi, dword [ecx + 0x30]
mov esi, dword [ecx + 0x34]
mov dword [ecx + 0x30], eax
lea eax, [esp + 0x78]
mov dword [ecx + 0x34], 0
mov ecx, dword [esp + 0x1c]
push eax
call fcn.004ce550
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], esi
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cbf04
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cbf3e
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edi, dword [esp + 0x44]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
jmp 0x4cbf42
mov edi, dword [esp + 0x44]
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cbf55
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cbf8d
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
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
mov byte [ebx + 0x6e], 0
push dword [esp + 0x4c]
mov esi, dword [esp + 0x20]
lea eax, [edi + 1]
mov edx, dword [esp + 0x1c]
mov ecx, esi
push 0xfffffffffffffff0
push dword [esp + 0x30]
push dword [esp + 0x38]
push eax
push dword [ebp + 8]
lea eax, [esp + 0xa0]
push eax
call fcn.004ca9b0
mov edi, eax
add esp, 0x1c
mov al, byte [esp + 0x13]
mov dword [esp + 0x14], edi
cmp al, 0x70
je 0x4cbfce
cmp al, 0x6f
jne 0x4cc001
push dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x7c]
push 0xffffffffffffffef
push dword [esp + 0x30]
mov ecx, esi
push dword [esp + 0x38]
push dword [esp + 0x44]
push dword [ebp + 8]
push eax
call fcn.004ca9b0
mov dword [esp + 0x8c], eax
add esp, 0x1c
mov al, byte [esp + 0x13]
cmp al, 0x71
je 0x4cc174
cmp al, 0x72
je 0x4cc174
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x28], edi
cmp dword [ebx + 0x10], edi
jg 0x4cc033
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4cc033
mov edi, 1
mov dword [esp + 0x28], edi
jmp 0x4cc06b
mov eax, dword [ebx + 0x14]
lea ecx, [edi + edi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc07e
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc0b6
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x70]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc0c9
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc101
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
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
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc114
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc148
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edi, dword [esp + 0x14]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x3c], edx
cmp dword [ebx + 0x10], edx
jg 0x4cc1ea
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4cc1e6
mov dword [esp + 0x3c], 1
jmp 0x4cc222
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x28], esi
cmp dword [ebx + 0x10], esi
jg 0x4cc196
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4cc196
mov esi, 1
mov dword [esp + 0x28], esi
jmp 0x4cc1ce
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x4c]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
cmp byte [esp + 0x13], 0x72
jne 0x4cc14c
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], esi
jmp 0x4cc300
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 0x14]
lea ecx, [edx + edx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc235
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc26a
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x44]
inc edx
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc27d
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc2b5
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x58]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
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
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc2c8
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc300
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x5c], edi
cmp dword [ebx + 0x10], edi
jg 0x4cc322
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4cc322
mov edi, 1
mov dword [esp + 0x5c], edi
jmp 0x4cc35b
mov eax, dword [ebx + 0x14]
lea ecx, [edi + edi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x44]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc36e
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc3a6
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x58]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
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
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc3b9
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc3f1
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc404
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc43c
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov al, byte [esp + 0x13]
cmp al, 0x70
jne 0x4cc454
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], esi
jmp 0x4cc579
cmp al, 0x72
jne 0x4cc46d
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x30], edi
inc edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x14], ecx
jmp 0x4cc5c1
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x30], edi
cmp dword [ebx + 0x10], edi
jg 0x4cc48f
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4cc48f
mov edi, 1
mov dword [esp + 0x30], edi
jmp 0x4cc4c7
mov eax, dword [ebx + 0x14]
lea ecx, [edi + edi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x58]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
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
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc4da
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc512
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc533
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4cc533
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x30], edi
jmp 0x4cc56b
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
cmp byte [esp + 0x13], 0x6f
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x14], esi
jne 0x4cc5c1
cmp dword [ebx + 0x10], esi
jg 0x4cc589
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc5c1
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x70]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc5d4
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc60c
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
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
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc61f
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc659
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
jmp 0x4cc65d
mov edi, dword [esp + 0x3c]
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc670
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc6a8
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x20]
cmp edx, eax
jle 0x4cc6bd
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc6d0
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc708
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc71b
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc753
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc766
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc79e
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc7b1
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc7e9
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x68]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc7fc
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc834
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc847
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc87b
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x4cc894
mov eax, dword [esp + 0x60]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ebx + 0xc]
mov dword [ecx], eax
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x4cc8ae
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4cc8ae
mov esi, 1
jmp 0x4cc8e6
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov word [eax + ecx*4], 0x17
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
push 0xfffffffffffffff1
push dword [esp + 0x58]
mov edx, esi
mov ecx, ebx
call fcn.004a1c70
mov esi, dword [ebx + 0xc]
add esp, 8
mov eax, dword [esp + 0x90]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x68], eax
cmp dword [ebx + 0x10], esi
jg 0x4cc928
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4cc928
mov edi, dword [esp + 0x38]
mov esi, 1
jmp 0x4cc95c
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x38]
mov word [eax + ecx*4], 0x18
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
push 0xfffffffffffffff0
push dword [esp + 0x54]
mov edx, esi
mov ecx, ebx
call fcn.004a1c70
mov esi, dword [ebx + 0xc]
add esp, 8
cmp dword [ebx + 0x10], esi
jg 0x4cc981
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4cc9b9
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
test ecx, ecx
je 0x4cc9d3
lea eax, [edi + 1]
cmp eax, dword [esi + 0x38]
jle 0x4cc9d3
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x4cc9ec
mov eax, dword [esp + 0x4c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ebx + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 5
jne 0x4cca18
mov eax, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4cca0a
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4cca01
push dword [ecx]
xor edx, edx
mov ecx, esi
call fcn.004c8530
add esp, 4
mov ebx, dword [esp + 0x18]
mov edi, dword [ebx + 0x1c]
test edi, edi
je 0x4cca71
mov esi, dword [esp + 0x64]
mov edx, edi
mov ecx, esi
call fcn.004c6510
test esi, esi
je 0x4cca68
cmp edi, dword [esi + 0xf0]
jb 0x4cca68
cmp edi, dword [esi + 0xf4]
jae 0x4cca68
mov eax, dword [esi + 0xec]
mov dword [edi], eax
dec dword [esi + 0xe4]
mov eax, dword [esp + 0x40]
mov dword [esi + 0xec], edi
mov dword [ebx + 0x1c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00491400
add esp, 4
mov eax, dword [esp + 0x40]
pop edi
mov dword [ebx + 0x1c], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret