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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
xor eax, eax
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov ecx, dword [ebx]
push edi
mov eax, dword [esi]
mov edi, edx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x4c], eax
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x54], eax
cmp dword [edx + 0x18], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
je 0x4c943b
movzx eax, byte [edi + 4]
sub eax, 0x70
je 0x4c940b
sub eax, 1
je 0x4c9404
sub eax, 1
je 0x4c93fd
mov eax, str.UNION
jmp 0x4c9410
mov eax, str.INTERSECT
jmp 0x4c9410
mov eax, str.EXCEPT
jmp 0x4c9410
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ebx
call fcn.004936e0
mov eax, dword [esp + 0x5c]
mov ecx, 1
mov dword [esi + 8], eax
add esp, 0xc
mov eax, dword [esp + 0x54]
mov dword [esi + 0xc], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edx + 0x28], 0
je 0x4c9488
movzx eax, byte [edi + 4]
sub eax, 0x70
je 0x4c947b
sub eax, 1
je 0x4c946e
sub eax, 1
je 0x4c9461
mov eax, str.UNION
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4c9416
mov eax, str.INTERSECT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4c9416
mov eax, str.EXCEPT
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4c9416
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x4c9416
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x24], esi
test esi, esi
jne 0x4c94a9
call fcn.004a1540
mov esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], esi
mov dword [ebx + 0xc], esi
mov dword [esp + 0x18], eax
cmp byte [esp + 0x48], 9
jne 0x4c9518
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x10], eax
jg 0x4c94d3
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4c950b
mov eax, dword [esp + 0x38]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x28
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 eax, dword [esp + 0x4c]
mov byte [esp + 0x48], 8
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
mov ecx, dword [edx]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x4c9581
movzx eax, byte [edi + 4]
sub eax, 0x70
je 0x4c954e
sub eax, 1
je 0x4c9547
sub eax, 1
je 0x4c9540
mov eax, str.UNION
jmp 0x4c9553
mov eax, str.INTERSECT
jmp 0x4c9553
mov eax, str.EXCEPT
jmp 0x4c9553
mov eax, str.UNION_ALL
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
push ebx
call fcn.004936e0
mov edx, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esp + 0x5c]
add esp, 0xc
mov dword [edx + 8], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 0xc], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0
je 0x4c959e
mov edx, dword [ebp + 8]
mov ecx, ebx
push edx
mov edx, edi
call fcn.004cb1d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 4]
sub eax, 0x6f
je 0x4c9fbd
sub eax, 1
je 0x4c9e95
sub eax, 1
je 0x4c9fbd
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x30], eax
inc eax
mov dword [ebx + 0x44], eax
mov edx, dword [esi + 0xc]
mov dword [esp + 0x38], edx
cmp dword [esi + 0x10], edx
jg 0x4c95ef
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4c95eb
mov edx, 1
jmp 0x4c962b
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
inc dword [esi + 0xc]
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x28
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [edi + 0x24]
mov ecx, ebx
mov dword [edi + 0x38], edx
mov edx, dword [esp + 0x1c]
or word [eax + 6], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
mov word [esp + 0x5c], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call fcn.004ce550
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4ca93b
mov edx, dword [esi + 0xc]
mov dword [esp + 0x38], edx
cmp dword [esi + 0x10], edx
jg 0x4c9698
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4c9694
mov edx, 1
jmp 0x4c96d4
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
inc dword [esi + 0xc]
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0xc]
mov word [eax + ecx*4], 0x28
mov byte [eax + ecx*4 + 3], 0
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 dword [edi + 0x3c], edx
mov ecx, ebx
mov eax, dword [edi + 0x28]
mov edx, edi
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.004ce550
mov edx, dword [edi + 0x28]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1c], eax
mov dword [esp + 0x38], edx
test edx, edx
je 0x4c977b
mov ecx, dword [esp + 0x14]
call fcn.004ade90
mov edx, dword [esp + 0x38]
cmp word [edx + 2], 0
jl 0x4c977b
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4c9772
cmp edx, dword [ecx + 0xf0]
jb 0x4c9772
cmp edx, dword [ecx + 0xf4]
jae 0x4c9772
mov eax, dword [ecx + 0xec]
mov dword [edx], eax
dec dword [ecx + 0xe4]
mov dword [ecx + 0xec], edx
jmp 0x4c977b
push edx
call fcn.00491400
add esp, 4
cmp byte [esp + 0x48], 5
mov eax, dword [esp + 0x34]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x2c], eax
jne 0x4c97b7
mov eax, dword [edi + 0x1c]
mov ecx, edi
test eax, eax
je 0x4c97a9
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4c97a0
push dword [ecx]
xor edx, edx
mov ecx, ebx
call fcn.004c8530
add esp, 4
mov ecx, esi
call fcn.004a1770
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.004a1770
cmp dword [edi + 0x30], 0
mov dword [esp + 0x38], eax
jne 0x4c9c19
mov ecx, ebx
call fcn.004b08b0
cmp dword [edi + 0x28], 0
je 0x4c9c19
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
mov eax, dword [esp + 0xc]
mov dword [edi + 0x30], ecx
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x1c], ecx
test ebx, ebx
jne 0x4c981c
mov ecx, dword [eax]
call fcn.004a1540
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0xc]
mov dword [eax + 0xc], ebx
test ebx, ebx
je 0x4c9c15
mov edx, dword [edi + 0x28]
push ecx
mov ecx, eax
call fcn.004b0d20
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x1c]
je 0x4c989e
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], edx
test edx, edx
je 0x4c989e
mov eax, dword [edx + 0xc]
mov dword [esp + 0x18], eax
cmp dword [edx + 0x10], eax
jg 0x4c9862
mov ecx, edx
call fcn.004a1610
test eax, eax
jne 0x4c989e
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
inc dword [edx + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x14]
mov esi, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x24]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [edx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov eax, ecx
mov dword [esp + 0x40], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4c98be
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4c98f7
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 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 [ebx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x40], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4c9912
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4c994a
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
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 [ebx + 0x6e], 0
cmp dword [edi + 0x2c], 0
je 0x4c9c15
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x48]
inc edx
mov dword [ecx + 0x48], edx
mov dword [edi + 0x34], edx
inc dword [ecx + 0x48]
mov dword [esp + 0x18], edx
push edx
mov edx, dword [edi + 0x2c]
call fcn.004b0d20
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x18]
je 0x4c99e9
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x40], edx
test edx, edx
je 0x4c99e9
mov eax, dword [edx + 0xc]
mov dword [esp + 0x34], eax
cmp dword [edx + 0x10], eax
jg 0x4c99ad
mov ecx, edx
call fcn.004a1610
test eax, eax
jne 0x4c99e9
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
inc dword [edx + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x14]
mov esi, dword [esp + 0x44]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x24]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [edx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4c9a04
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4c9a3c
mov ecx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
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 [ebx + 0x6e], 0
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x34], edx
cmp dword [ebx + 0x10], edx
jg 0x4c9a61
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4c9a5d
mov dword [esp + 0x34], 1
jmp 0x4c9a99
mov edx, dword [esp + 0x34]
mov eax, dword [ebx + 0x14]
lea ecx, [edx + edx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
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 [ebx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4c9ab4
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4c9aec
mov ecx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
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 edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x34]
cmp edx, eax
jle 0x4c9b01
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4c9b1c
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4c9b50
mov ecx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov word [eax + ecx*4], 0x56
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], eax
inc eax
mov dword [ecx + 0xc], eax
mov byte [ebx + 0x6e], 0
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x34], edx
cmp dword [ebx + 0x10], edx
jg 0x4c9b75
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4c9b71
mov dword [esp + 0x34], 1
jmp 0x4c9bad
mov edx, dword [esp + 0x34]
mov eax, dword [ebx + 0x14]
lea ecx, [edx + edx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x1c]
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 [ebx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4c9bc8
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4c9c00
mov ecx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
inc eax
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x34]
cmp edx, eax
jle 0x4c9c15
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov ebx, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [esi + 0x10], ecx
jg 0x4c9c34
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4c9c6c
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x40
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 al, byte [ebx + 0x15]
test al, al
jne 0x4c9c7b
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
jmp 0x4c9c87
dec al
mov byte [ebx + 0x15], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x18]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
cmp dword [esi + 0x10], ecx
jg 0x4c9cb0
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4c9cac
mov dword [esp + 0x34], 1
jmp 0x4c9ce8
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x3a
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 [esi + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [esi + 0x10], ecx
jg 0x4c9d03
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4c9d3d
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x30
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
jmp 0x4c9d41
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4c9d6f
cmp byte [ebx + 0x15], 8
jae 0x4c9d6f
xor ecx, ecx
lea eax, [ebx + 0x60]
cmp dword [eax + 0x10], edx
je 0x4c9d6b
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x4c9d50
movzx eax, byte [ebx + 0x15]
mov dword [ebx + eax*4 + 0x18], edx
inc byte [ebx + 0x15]
jmp 0x4c9d6f
mov byte [eax + 9], 1
push dword [esp + 0x2c]
mov eax, dword [edi]
lea ecx, [esp + 0x4c]
push dword [esp + 0x3c]
mov edx, edi
push ecx
push 0xffffffffffffffff
push 0
push dword [eax]
mov ecx, ebx
push dword [esp + 0x38]
push eax
call fcn.004c7330
mov ecx, dword [esi + 0x20]
add esp, 0x20
test ecx, ecx
je 0x4c9dae
mov eax, dword [esp + 0x38]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [esi + 0x10], ecx
jg 0x4c9dc9
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4c9e01
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x42
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 [esi + 0x20]
test ecx, ecx
je 0x4c9e1a
mov eax, dword [esp + 0x2c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [esi + 0x10], ecx
jg 0x4c9e35
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4c9e6d
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x2a
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 + 0x44], ecx
cmp dword [esi + 0x10], ecx
jg 0x4c9e8c
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4ca757
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
jmp 0x4ca723
mov eax, dword [edi + 0x28]
mov ecx, ebx
mov dword [edx + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [edx + 0x2c], eax
lea eax, [esp + 0x48]
push eax
call fcn.004ce550
mov ecx, eax
mov dword [edi + 0x28], 0
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [edi + 0x2c], 0
test ecx, ecx
jne 0x4ca93b
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x30]
mov dword [edi + 0x30], ecx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x44], ecx
mov dword [edi + 0x34], eax
test ecx, ecx
je 0x4c9f93
mov eax, dword [esi + 0xc]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x10], eax
jg 0x4c9f10
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4c9f0c
mov dword [esp + 0x38], 1
jmp 0x4c9f48
mov eax, dword [esp + 0x38]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x72
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
lea eax, [esp + 0x48]
mov edx, edi
push eax
mov ecx, ebx
call fcn.004ce550
mov ecx, eax
add esp, 4
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
test eax, eax
je 0x4ca75b
mov edx, dword [esi + 0xc]
cmp edx, eax
jle 0x4ca75b
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4 + 8], edx
jmp 0x4ca757
lea eax, [esp + 0x48]
mov edx, edi
push eax
mov ecx, ebx
call fcn.004ce550
mov ecx, eax
add esp, 4
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [edi + 0x1c], eax
jmp 0x4ca75b
cmp byte [esp + 0x48], 1
jne 0x4c9fd0
cmp dword [edi + 0x28], 0
jne 0x4c9fd0
cmp dword [edi + 0x2c], 0
je 0x4ca048
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x18], eax
inc eax
mov dword [ebx + 0x44], eax
mov edx, dword [esi + 0xc]
mov dword [esp + 0x44], edx
cmp dword [esi + 0x10], edx
jg 0x4c9ffd
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4c9ff9
mov edx, 1
jmp 0x4ca039
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
inc dword [esi + 0xc]
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0xc]
mov word [eax + ecx*4], 0x28
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [edi + 0x24]
mov dword [edi + 0x38], edx
mov edx, dword [esp + 0x1c]
or word [eax + 6], 8
mov eax, dword [esp + 0x18]
mov ecx, ebx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push eax
mov word [esp + 0x6c], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call fcn.004ce550
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4ca93b
cmp byte [edi + 4], 0x71
mov edx, edi
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x38], eax
sete al
inc al
mov dword [edi + 0x28], ecx
mov byte [esp + 0x68], al
lea eax, [esp + 0x68]
mov dword [edi + 0x2c], ecx
mov ecx, ebx
push eax
call fcn.004ce550
mov edx, dword [edi + 0x18]
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
call fcn.004aedc0
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], 0
mov dword [esp + 0x44], edx
test edx, edx
je 0x4ca134
mov ecx, dword [esp + 0x14]
call fcn.004ade90
mov edx, dword [esp + 0x44]
cmp word [edx + 2], 0
jl 0x4ca134
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4ca12b
cmp edx, dword [ecx + 0xf0]
jb 0x4ca12b
cmp edx, dword [ecx + 0xf4]
jae 0x4ca12b
mov eax, dword [ecx + 0xec]
mov dword [edx], eax
dec dword [ecx + 0xe4]
mov dword [ecx + 0xec], edx
jmp 0x4ca134
push edx
call fcn.00491400
add esp, 4
mov eax, dword [esp + 0x40]
lea edx, [edi + 0x30]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x2c], eax
mov al, byte [esp + 0x48]
mov dword [esp + 0x30], edx
mov dword [edx], 0
mov dword [edi + 0x34], 0
cmp al, 1
je 0x4ca757
cmp al, 5
jne 0x4ca191
mov eax, dword [edi + 0x1c]
mov ecx, edi
mov dword [esp + 0x30], edx
test eax, eax
je 0x4ca183
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4ca173
lea eax, [edi + 0x30]
mov dword [esp + 0x30], eax
push dword [ecx]
xor edx, edx
mov ecx, ebx
call fcn.004c8530
add esp, 4
mov ecx, esi
call fcn.004a1770
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.004a1770
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
cmp dword [ecx], 0
jne 0x4ca5f9
mov ecx, ebx
call fcn.004b08b0
cmp dword [edi + 0x28], 0
je 0x4ca5f9
mov eax, dword [esp + 0x30]
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
mov dword [esp + 0x20], ecx
mov dword [eax], ecx
mov ebx, dword [ebx + 0xc]
mov eax, dword [esp + 0xc]
test ebx, ebx
jne 0x4ca1fc
mov ecx, dword [eax]
call fcn.004a1540
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0xc]
mov dword [eax + 0xc], ebx
test ebx, ebx
je 0x4ca5f5
mov edx, dword [edi + 0x28]
push ecx
mov ecx, eax
call fcn.004b0d20
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x20]
je 0x4ca27e
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x44], edx
test edx, edx
je 0x4ca27e
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], eax
cmp dword [edx + 0x10], eax
jg 0x4ca242
mov ecx, edx
call fcn.004a1610
test eax, eax
jne 0x4ca27e
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
inc dword [edx + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x14]
mov esi, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x24]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [edx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov eax, ecx
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4ca29e
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4ca2d7
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
lea ecx, [ecx + ecx*4]
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 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 [ebx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4ca2f2
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4ca32a
mov ecx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
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 [ebx + 0x6e], 0
cmp dword [edi + 0x2c], 0
je 0x4ca5f5
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x48]
inc edx
mov dword [ecx + 0x48], edx
mov dword [edi + 0x34], edx
inc dword [ecx + 0x48]
mov dword [esp + 0x1c], edx
push edx
mov edx, dword [edi + 0x2c]
call fcn.004b0d20
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x1c]
je 0x4ca3c9
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x44], edx
test edx, edx
je 0x4ca3c9
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], eax
cmp dword [edx + 0x10], eax
jg 0x4ca38d
mov ecx, edx
call fcn.004a1610
test eax, eax
jne 0x4ca3c9
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
inc dword [edx + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x14]
mov esi, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x24]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [edx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4ca3e4
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4ca41c
mov ecx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x1c]
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 [ebx + 0x6e], 0
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x38], edx
cmp dword [ebx + 0x10], edx
jg 0x4ca441
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4ca43d
mov dword [esp + 0x38], 1
jmp 0x4ca479
mov edx, dword [esp + 0x38]
mov eax, dword [ebx + 0x14]
lea ecx, [edx + edx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x1c]
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 [ebx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4ca494
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4ca4cc
mov ecx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x1c]
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 edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x38]
cmp edx, eax
jle 0x4ca4e1
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4ca4fc
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4ca530
mov ecx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov word [eax + ecx*4], 0x56
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 8], eax
inc eax
mov dword [ecx + 0xc], eax
mov byte [ebx + 0x6e], 0
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x38], edx
cmp dword [ebx + 0x10], edx
jg 0x4ca555
mov ecx, ebx
call fcn.004a1610
test eax, eax
je 0x4ca551
mov dword [esp + 0x38], 1
jmp 0x4ca58d
mov edx, dword [esp + 0x38]
mov eax, dword [ebx + 0x14]
lea ecx, [edx + edx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x20]
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 [ebx + 0x6e], 0
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [ebx + 0x10], ecx
jg 0x4ca5a8
mov ecx, ebx
call fcn.004a1610
test eax, eax
jne 0x4ca5e0
mov ecx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [ebx + 0xc]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x38]
cmp edx, eax
jle 0x4ca5f5
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov ebx, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov eax, ecx
mov dword [esp + 0x44], ecx
cmp dword [esi + 0x10], ecx
jg 0x4ca619
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4ca652
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x40
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
push dword [esp + 0x2c]
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x4c]
push dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov edx, edi
mov eax, dword [edi]
push ecx
push 0xffffffffffffffff
push 0
push dword [eax]
mov ecx, ebx
push dword [esp + 0x30]
push eax
call fcn.004c7330
mov ecx, dword [esi + 0x20]
add esp, 0x20
test ecx, ecx
je 0x4ca698
mov eax, dword [esp + 0x34]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [esi + 0x10], ecx
jg 0x4ca6b3
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4ca6eb
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x42
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 [esi + 0x20]
test ecx, ecx
je 0x4ca704
mov eax, dword [esp + 0x2c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x44], ecx
cmp dword [esi + 0x10], ecx
jg 0x4ca71f
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4ca757
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov word [eax + ecx*4], 0x2a
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 [esp + 0x10]
test byte [edi + 6], 8
je 0x4ca93b
mov eax, dword [edi]
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
lea ecx, [eax + 4]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x38], ecx
test edx, edx
je 0x4ca7d4
cmp byte [edx + 0x1e], 0
jne 0x4ca932
cmp byte [edx + 0xe2], 0
je 0x4ca7d4
movzx eax, word [edx + 0xe0]
cmp ecx, eax
jg 0x4ca7d4
mov ecx, dword [edx + 0xec]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4ca7d0
mov eax, dword [ecx]
mov dword [edx + 0xec], eax
mov eax, dword [edx + 0xe4]
inc eax
mov dword [edx + 0xe4], eax
cmp eax, dword [edx + 0xe8]
jle 0x4ca7fb
mov dword [edx + 0xe8], eax
jmp 0x4ca7fb
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00491390
mov ecx, eax
mov dword [esp + 0x24], eax
add esp, 4
test ecx, ecx
jne 0x4ca7fb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ca7f3
mov byte [eax + 0x1e], 1
test ecx, ecx
je 0x4ca932
push dword [esp + 0x38]
push 0
push ecx
call fcn.004e1ab0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 8]
lea edx, [ecx + 0xc]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x49]
mov byte [ecx + 4], al
mov eax, dword [esp + 0x34]
mov word [ecx + 6], ax
test eax, eax
jle 0x4ca8a1
mov dword [esp + 0x38], 0
xor esi, esi
mov dword [esp + 0x20], ecx
nop
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4ca85e
push esi
mov edx, eax
mov ecx, ebx
call fcn.004c9340
mov edx, dword [esp + 0x34]
add esp, 4
test eax, eax
jne 0x4ca87b
jmp 0x4ca860
xor eax, eax
mov ecx, dword [edi]
cmp esi, dword [ecx]
jge 0x4ca87b
mov edx, dword [ecx + 0xc]
mov ecx, ebx
mov eax, dword [esp + 0x38]
mov edx, dword [edx + eax]
call fcn.004ad2c0
mov edx, dword [esp + 0x30]
mov dword [edx], eax
test eax, eax
jne 0x4ca88a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
mov dword [edx], eax
add dword [esp + 0x38], 0x14
inc esi
add edx, 4
mov dword [esp + 0x30], edx
cmp esi, dword [esp + 0x34]
jl 0x4ca840
mov esi, dword [esp + 0x24]
xor ebx, ebx
add edi, 0x38
mov edx, dword [edi]
test edx, edx
js 0x4ca8e2
cmp dword [esi + 0xc], edx
jle 0x4ca8c3
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
mov esi, dword [esp + 0x34]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x24]
push 0xfffffffffffffffa
push dword [esp + 0x24]
mov ecx, esi
call fcn.004a1c70
mov dword [edi], 0xffffffff
inc ebx
add esp, 8
add edi, 4
cmp ebx, 2
jl 0x4ca8a6
mov edi, dword [esp + 0x3c]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x3c], edi
test edi, edi
jne 0x4ca8a1
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [ebx + 0xf0]
jb 0x4ca923
cmp ecx, dword [ebx + 0xf4]
jae 0x4ca923
mov eax, dword [ebx + 0xec]
mov dword [ecx], eax
dec dword [ebx + 0xe4]
mov dword [ebx + 0xec], ecx
mov ecx, dword [esp + 0x10]
jmp 0x4ca93f
push ecx
call fcn.00491400
mov ecx, dword [esp + 0x14]
add esp, 4
jmp 0x4ca93f
mov ecx, 7
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 0xc], eax
test esi, esi
je 0x4ca9a3
mov edx, esi
mov ecx, ebx
call fcn.004c6510
test ebx, ebx
je 0x4ca996
cmp esi, dword [ebx + 0xf0]
jb 0x4ca996
cmp esi, dword [ebx + 0xf4]
jae 0x4ca996
mov eax, dword [ebx + 0xec]
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, ecx
dec dword [ebx + 0xe4]
mov dword [ebx + 0xec], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00491400
mov ecx, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret