Function at 0x5054a0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], edi
mov esi, dword [ebx]
mov dword [esp + 0x18], esi
test edi, edi
je 0x505734
cmp byte [esi + 0x1e], 0
jne 0x505734
cmp dword [ebx + 0x40], 0
jne 0x505734
push 0x2c
lea eax, [esp + 0x94]
push 0
push eax
call fcn.004359a0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [eax], 4
ja 0x505513
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.00524b90
mov ecx, 0xfffe
mov dword [edi + 0x18], 0
and word [edi + 6], cx
push 0
mov edx, edi
mov ecx, ebx
call fcn.005072c0
mov eax, dword [edi + 0x18]
add esp, 4
cmp dword [ebx + 0x40], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x4c], eax
jne 0x506b21
cmp byte [esi + 0x1e], 0
jne 0x506b21
movzx eax, word [edi + 6]
mov ecx, ebx
shr eax, 2
and eax, 1
mov dword [esp + 0x28], eax
call fcn.0050b9b0
mov esi, eax
mov dword [esp + 0x58], esi
test esi, esi
je 0x506b1d
mov edx, dword [edi + 0x1c]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
test edx, edx
jne 0x5056cd
mov eax, dword [esp + 0x4c]
nop
movsx eax, word [eax]
cmp ecx, eax
jge 0x5056cd
mov edx, dword [esp + 0x4c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [edx + eax*8]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
test edx, edx
je 0x5056b9
cmp byte [eax + 0x1c], 0
jne 0x5056b9
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0
mov ecx, edi
call fcn.00526db0
mov eax, dword [ebx + 0x208]
mov edx, edi
add eax, dword [esp + 0x40]
mov ecx, ebx
mov dword [ebx + 0x208], eax
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 6]
shr eax, 2
and eax, 1
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
push eax
call fcn.00508180
add esp, 0xc
test eax, eax
je 0x505624
cmp dword [esp + 0x24], 0
je 0x50561b
or word [edi + 6], 4
mov dword [esp + 0x28], 1
or eax, 0xffffffff
mov dword [esp + 0x3c], eax
jmp 0x505670
mov eax, dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc4]
push eax
mov word [esp + 0xc8], 9
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
call fcn.005054a0
mov eax, dword [esp + 0x20]
add esp, 4
mov byte [eax + 0x1c], 1
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x1e], 0
jne 0x506b19
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0
mov ecx, edi
call fcn.00526db0
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x40]
sub dword [ebx + 0x208], eax
mov eax, dword [edi + 8]
cmp byte [ecx], 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
jbe 0x5056bd
mov eax, dword [edi + 0x18]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [edi + 0x1c]
inc ecx
mov dword [esp + 0x3c], ecx
test edx, edx
je 0x505580
mov eax, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x40], eax
movzx eax, word [edi + 6]
and eax, 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], eax
test edx, edx
je 0x505756
cmp dword [edi + 0x24], 0
jne 0x505740
xor edx, edx
mov eax, edi
xor ecx, ecx
mov dword [eax + 0x20], edx
inc ecx
mov dword [eax + 0x24], edi
mov edx, eax
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x505707
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x505740
cmp ecx, eax
jle 0x505740
push str.too_many_terms_in_compound_SELECT
push ebx
call fcn.00544890
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov edx, edi
mov ecx, ebx
call fcn.0050a8e0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ecx]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0050d370
add esp, 4
test eax, eax
jne 0x506b1d
mov al, byte [edi + 6]
and al, 5
cmp al, 1
jne 0x5057a2
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
push 0
call fcn.00525a80
mov dword [esp + 0x3c], eax
add esp, 4
mov dword [edi + 0x10], eax
mov dword [esp + 0x20], eax
mov eax, 0xfffe
and word [edi + 6], ax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x5057e6
mov edx, eax
mov ecx, ebx
call fcn.0050cdc0
mov edx, dword [esp + 0x50]
mov ecx, dword [ebx + 0x44]
push 0xfffffffffffffff0
push eax
mov dword [edx + 8], ecx
mov ecx, esi
inc dword [ebx + 0x44]
mov eax, dword [edx]
push 0
add eax, 2
push eax
push dword [edx + 8]
mov edx, 0x28
call fcn.00533cb0
add esp, 0x14
mov dword [esp + 0x1c], eax
mov dword [edi + 0x40], eax
jmp 0x5057ee
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [ebp + 8]
cmp byte [eax], 9
jne 0x50580e
mov ecx, dword [esp + 0x3c]
mov edx, 0x28
push dword [ecx]
mov ecx, esi
push dword [eax + 4]
call fcn.00533d20
add esp, 8
mov ecx, esi
call fcn.00533bd0
push eax
mov edx, edi
mov dword [esp + 0xc4], eax
mov ecx, ebx
call fcn.0050b840
add esp, 4
cmp dword [esp + 0x14], 0
je 0x505860
mov eax, dword [ebx + 0x44]
mov ecx, ebx
mov dword [esp + 0x68], eax
inc eax
mov dword [ebx + 0x44], eax
mov edx, dword [edi]
call fcn.0050cdc0
push 0xfffffffffffffff0
push eax
push 0
push 0
push dword [esp + 0x78]
mov edx, 0x28
mov ecx, esi
call fcn.00533cb0
add esp, 0x14
jmp 0x505868
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x38]
jne 0x505902
test edx, edx
jne 0x505906
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x68]
mov ecx, ebx
call fcn.004fd320
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x506b1d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], eax
test edx, edx
js 0x5058d4
test eax, eax
jne 0x5058d4
push 1
mov ecx, esi
call fcn.00533410
mov eax, dword [esp + 0x54]
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x40], 0xffffffff
push dword [ecx + 0x14]
mov edx, edi
push dword [ecx + 0x10]
mov ecx, ebx
push dword [ebp + 8]
push 0xffffffffffffffff
push eax
push 0
push 0
push dword [esp + 0x58]
call fcn.0050ced0
mov ecx, dword [esp + 0x60]
add esp, 0x20
call fcn.004fcd10
jmp 0x506abe
test edx, edx
je 0x505940
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jle 0x505926
add ecx, 0x10
xor esi, esi
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], si
test eax, eax
jg 0x505914
mov esi, dword [esp + 0x58]
mov eax, dword [edx]
mov ecx, dword [edx + 0xc]
test eax, eax
jle 0x505940
add ecx, 0x10
xor edx, edx
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], dx
test eax, eax
jg 0x505932
mov ecx, esi
call fcn.00533bd0
mov ecx, dword [esp + 0x38]
xorps xmm0, xmm0
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x90]
movlpd qword [esp + 0xdc], xmm0
movlpd qword [esp + 0xe4], xmm0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], edx
mov dword [esp + 0xf0], eax
test ecx, ecx
je 0x5059a8
mov eax, dword [ecx]
inc eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x3c]
cmp dword [ecx], 0
mov eax, dword [ecx + 0xc]
jle 0x505a16
mov edi, eax
xor esi, esi
mov ebx, ecx
nop dword [eax]
nop word [eax + eax]
mov edx, dword [edi]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], 0x520be0
mov dword [esp + 0x84], 0x520bb0
mov dword [esp + 0x8c], eax
call fcn.00528da0
inc esi
lea edi, [edi + 0x14]
cmp esi, dword [ebx]
jl 0x5059d0
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x505a76
cmp dword [ecx], 0
mov eax, dword [ecx + 0xc]
jle 0x505a76
mov ebx, eax
xor edi, edi
mov esi, ecx
nop dword [eax]
mov edx, dword [ebx]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], 0x520be0
mov dword [esp + 0x84], 0x520bb0
mov dword [esp + 0x8c], eax
call fcn.00528da0
inc edi
lea ebx, [ebx + 0x14]
cmp edi, dword [esi]
jl 0x505a30
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x505ab0
lea ecx, [esp + 0xd4]
mov dword [esp + 0x80], 0x520be0
mov dword [esp + 0x8c], ecx
mov edx, eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x84], 0x520bb0
call fcn.00528da0
mov eax, dword [esp + 0xa4]
xor edx, edx
mov dword [esp + 0xac], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0xb4], edx
jle 0x505b63
xor ecx, ecx
mov dword [esp + 0x1c], ecx
nop word [eax + eax]
mov eax, dword [esp + 0xb0]
mov eax, dword [ecx + eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
je 0x505b42
mov edi, dword [eax + 0xc]
xor esi, esi
cmp dword [eax], esi
jle 0x505b42
mov ebx, eax
mov edx, dword [edi]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], 0x520be0
mov dword [esp + 0x84], 0x520bb0
mov dword [esp + 0x8c], eax
call fcn.00528da0
inc esi
lea edi, [edi + 0x14]
cmp esi, dword [ebx]
jl 0x505b00
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
inc edx
add ecx, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
cmp edx, dword [esp + 0xb4]
jl 0x505ae0
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x1e], 0
jne 0x506b19
mov edx, dword [esp + 0x38]
test edx, edx
je 0x506656
mov eax, dword [ebx + 0x44]
mov ecx, ebx
mov dword [esp + 0x94], eax
inc eax
mov dword [ebx + 0x44], eax
call fcn.0050cdc0
push 0xfffffffffffffff0
push eax
push 0
push dword [esp + 0xa8]
mov edx, 0x28
mov dword [esp + 0x3c], eax
push dword [esp + 0xa4]
mov ecx, esi
call fcn.00533cb0
mov dword [esp + 0x44], eax
add esp, 0x14
mov eax, dword [ebx + 0x48]
mov ecx, esi
inc eax
mov dword [esp + 0x44], eax
add eax, 2
mov dword [ebx + 0x48], eax
call fcn.00533bd0
inc dword [ebx + 0x48]
mov ecx, esi
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x14], eax
call fcn.00533bd0
mov edx, dword [ebx + 0x48]
mov dword [esp + 0x1c], eax
lea eax, [edx + 1]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x38]
add edx, dword [eax]
mov dword [ebx + 0x48], edx
lea ecx, [edx + 1]
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x44]
add ecx, edx
inc eax
mov dword [ebx + 0x48], ecx
push eax
push 0
mov edx, 7
mov ecx, esi
call fcn.00533d20
push dword [esp + 0x4c]
mov edx, 7
mov ecx, esi
push 0
call fcn.00533d20
push dword [esp + 0x2c]
mov edx, 2
mov ecx, esi
push dword [esp + 0x28]
call fcn.00533d20
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x38]
push 0
push eax
push dword [esp + 0x80]
mov ecx, ebx
call fcn.004fd320
add esp, 0x24
mov dword [esp + 0x24], eax
test eax, eax
je 0x506b1d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x505c90
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], 0
jmp 0x505f8e
cmp dword [esp + 0xa4], 0
mov eax, dword [eax]
mov dword [esp + 0x60], 1
mov dword [esp + 0x6c], eax
lea edi, [eax + 1]
mov dword [esp + 0x70], edi
mov edx, edi
jle 0x505ce8
mov esi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
add esi, 0xc
cmp dword [esi], edx
lea eax, [edi + 1]
lea esi, [esi + 0x18]
cmovl eax, edi
mov edi, eax
lea eax, [edx + 1]
cmovl eax, edx
mov edx, eax
sub ebx, 1
jne 0x505cc2
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x70], edi
mov edx, edi
mov ecx, ebx
call fcn.00520a60
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.00523170
mov edx, dword [esp + 0x38]
push 0
push edx
mov edx, dword [esp + 0x28]
call fcn.005217a0
mov ecx, dword [esp + 0x74]
mov edx, 0x34
add ecx, dword [esp + 0x40]
push ecx
push dword [esp + 0xa0]
mov ecx, esi
call fcn.00533d20
mov ecx, dword [esp + 0x7c]
add esp, 0x10
inc ecx
mov dword [esp + 0x20], 0
cmp dword [esp + 0xa4], 0
mov dword [esp + 0x6c], ecx
jle 0x505e0b
mov edi, dword [esp + 0x38]
add edi, ecx
xor edx, edx
mov dword [esp + 0x78], edx
nop word [eax + eax]
mov eax, dword [esp + 0xa0]
cmp dword [edx + eax + 0xc], ecx
jl 0x505dea
push 0
push edi
push dword [edx + eax + 4]
mov ecx, ebx
push dword [edx + eax + 8]
mov edx, dword [edx + eax]
call fcn.00523380
add esp, 0x10
mov dword [esp + 0x34], eax
cmp edi, eax
je 0x505ddc
mov eax, dword [esi + 0xc]
mov dword [esp + 0x74], eax
cmp dword [esi + 0x10], eax
jg 0x505da8
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x505ddc
mov eax, dword [esp + 0x74]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0xf
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 [esi + 0x6e], 0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
inc ecx
mov dword [esp + 0x6c], ecx
inc edi
mov eax, dword [esp + 0x20]
add edx, 0x18
inc eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0xa4]
jl 0x505d60
mov edi, dword [esp + 0x70]
mov al, byte [ebx + 0x15]
test al, al
jne 0x505e1a
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
jmp 0x505e26
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 + 0x20], eax
mov eax, ecx
mov dword [esp + 0x34], ecx
cmp dword [esi + 0x10], ecx
jg 0x505e4a
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x505e7f
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
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 + 0x20]
mov word [eax + ecx*4], 0x1e
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], ecx
cmp dword [esi + 0x10], ecx
jg 0x505ea5
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x505edf
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x74]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov word [eax + ecx*4], 0x43
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
jmp 0x505ee3
mov edx, dword [esp + 0x20]
test edx, edx
je 0x505f11
cmp byte [ebx + 0x15], 8
jae 0x505f11
xor ecx, ecx
lea eax, [ebx + 0x60]
cmp dword [eax + 0x10], edx
je 0x505f0d
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x505ef2
movzx eax, byte [ebx + 0x15]
mov dword [ebx + eax*4 + 0x18], edx
inc byte [ebx + 0x15]
jmp 0x505f11
mov byte [eax + 9], 1
cmp edi, dword [ebx + 0x38]
jle 0x505f20
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], eax
mov ecx, dword [esp + 0x24]
call fcn.004fcd10
mov edi, dword [esi + 0xc]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x34], eax
cmp dword [esi + 0x10], edi
jg 0x505f47
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x505f7f
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x3f
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, ebx
mov byte [esp + 0x91], 1
call fcn.00523170
mov eax, dword [esi + 0xc]
mov ecx, ebx
mov dword [esp + 0x78], eax
call fcn.00523170
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], 0
mov edi, dword [eax]
test edi, edi
jle 0x50607f
mov edi, dword [esp + 0x7c]
xor edx, edx
mov dword [esp + 0x70], edx
jmp 0x505fc4
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x60], 0
je 0x506027
mov eax, dword [esp + 0x94]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x34], eax
cmp dword [esi + 0x10], eax
jg 0x505ff1
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x50605a
mov eax, dword [esp + 0x34]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x74]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
jmp 0x50605a
mov byte [esp + 0x90], 1
mov ecx, ebx
mov eax, dword [eax + 0xc]
push edi
mov edx, dword [edx + eax]
call fcn.00521d50
add esp, 4
cmp eax, edi
je 0x50605a
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x50605a
push edi
push eax
mov edx, 0xf
call fcn.00533d20
add esp, 8
mov ecx, dword [esp + 0x28]
inc edi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x70]
inc eax
add edx, 0x14
mov dword [esp + 0x20], eax
mov ecx, dword [ecx]
mov dword [esp + 0x70], edx
cmp eax, ecx
jl 0x505fc0
mov edi, ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x34], edx
cmp dword [esi + 0x10], edx
jg 0x5060a1
mov ecx, esi
call fcn.00533ee0
test eax, eax
je 0x50609d
mov edx, 1
jmp 0x5060dc
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
inc dword [esi + 0xc]
mov ebx, dword [esp + 0xbc]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x7c]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x18
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
push 0xfffffffffffffffa
push dword [esp + 0x30]
mov ecx, esi
call fcn.00533200
mov edi, dword [esi + 0xc]
add esp, 8
cmp dword [esi + 0x10], edi
jg 0x5060ff
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506131
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
lea eax, [edi + 1]
mov dword [ecx + 8], 0
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0
mov byte [esi + 0x6e], 0
mov eax, dword [esp + 0x28]
mov ecx, ebx
mov edx, dword [esp + 0x7c]
push dword [eax]
push dword [esp + 0xc0]
call fcn.00522f10
mov ecx, dword [esi + 0xc]
add esp, 8
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x10], ecx
jg 0x506167
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x5061aa
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x58]
add edx, 2
mov ebx, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
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 [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x10], ecx
jg 0x5061c5
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506202
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x70
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 + 0x2c], ecx
cmp dword [esi + 0x10], ecx
jg 0x50621d
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506255
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
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 [esi + 0x6e], 0
mov edx, dword [esi + 0xc]
cmp edx, edi
jle 0x506266
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
mov dword [eax + ecx*4 + 8], edx
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00506bb0
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x506287
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x5062bf
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 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], 1
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
cmp dword [esp + 0x60], 0
je 0x50631e
mov edi, dword [esi + 0xc]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x10], edi
jg 0x5062e4
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506337
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x78]
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
jmp 0x506337
mov ecx, dword [esp + 0x24]
call fcn.004fcd10
mov edx, dword [esp + 0x30]
mov ecx, esi
push 1
call fcn.00533410
add esp, 4
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x50634a
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506389
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
add edx, 2
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
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 [esi + 0x6e], 0
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x50639c
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x5063d4
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x54]
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 [esi + 0x6e], 0
mov edi, dword [esi + 0xc]
mov dword [esp + 0x2c], edi
cmp dword [esi + 0x10], edi
jg 0x5063eb
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506424
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x44]
inc edx
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 [esi + 0x6e], 0
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x506437
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506476
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
add edx, 2
mov word [eax + ecx*4], 3
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 + 0x20]
test ecx, ecx
je 0x50648f
mov eax, dword [esp + 0x64]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x5064a2
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x5064d8
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov word [eax + ecx*4], 0x70
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], 0
mov dword [ecx + 4], eax
lea eax, [edi + 2]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
cmp dword [esi + 0x10], ecx
jg 0x5064f3
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506536
mov ecx, dword [esp + 0x30]
inc dword [esi + 0xc]
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x58]
add edx, 2
mov ebx, dword [esp + 0x48]
mov word [eax + ecx*4], 3
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 edx, [esp + 0x90]
mov ecx, ebx
call fcn.00506f20
mov edx, dword [esp + 0x40]
inc edi
push 8
push edi
mov ecx, ebx
call fcn.00521050
push dword [esp + 0x34]
mov ecx, ebx
push edi
push dword [ebp + 8]
mov edi, dword [esp + 0x70]
mov edx, edi
push dword [esp + 0x7c]
push dword [esp + 0x68]
push 0
push 0
push dword [edi]
call fcn.0050ced0
mov ecx, dword [esi + 0xc]
add esp, 0x28
mov dword [esp + 0x30], ecx
cmp dword [esi + 0x10], ecx
jg 0x506594
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x5065d3
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
add edx, 2
mov word [eax + ecx*4], 3
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 + 0x20]
test ecx, ecx
je 0x5065ec
mov eax, dword [esp + 0x1c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00507070
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
cmp dword [esi + 0x10], ecx
jg 0x506619
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506aa5
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x14]
mov word [eax + ecx*4], 3
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
jmp 0x506aa5
cmp dword [edi + 0xc], 0
mov dword [esp + 0x28], 0
jne 0x5068f8
mov eax, dword [edi]
cmp dword [eax], 1
jne 0x5068f8
mov ecx, dword [edi + 8]
cmp word [ecx], 1
jne 0x5068f8
cmp dword [ecx + 0x18], 0
jne 0x5068f8
mov ecx, dword [ecx + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
test byte [ecx + 0x22], 0x10
mov edx, dword [eax]
jne 0x5068f8
cmp byte [edx], 0x99
jne 0x5068f8
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 4]
test byte [eax + 3], 0x20
je 0x5068f8
test byte [edx + 2], 0x10
jne 0x5068f8
mov edx, dword [ecx + 0x40]
mov ecx, 0xfff0bdc0
mov dword [esp + 0x1c], ecx
test edx, edx
je 0x506705
mov eax, dword [ebx]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [eax + 4], ecx
jle 0x506705
mov eax, dword [eax + 8]
mov edi, dword [ebx]
add eax, 0xc
nop dword [eax]
cmp dword [eax], edx
je 0x5066fd
inc ecx
add eax, 0x10
cmp ecx, dword [edi + 4]
jl 0x5066f0
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 0x44]
mov edx, ecx
mov dword [esp + 0x64], eax
mov ecx, ebx
inc eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x24], eax
call fcn.00519b70
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x50676e
xor edx, edx
test edx, edx
je 0x506743
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jge 0x506745
mov edx, ecx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x506737
test edx, edx
je 0x50676e
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 0xc]
jge 0x50676e
mov eax, dword [edx + 0x14]
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.005198f0
mov dword [esp + 0x68], eax
mov ecx, dword [esi + 0xc]
mov eax, ecx
mov dword [esp + 0x30], ecx
cmp dword [esi + 0x10], ecx
jg 0x50678e
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x5067c7
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
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 + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x26
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
mov edx, dword [esp + 0x68]
test edx, edx
je 0x50683b
cmp dword [esi + 0x14], 0
mov ecx, dword [esi]
je 0x506808
cmp byte [ecx + 0x1e], 0
jne 0x506808
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
dec eax
lea eax, [eax + eax*4]
push dword [edx + eax*4 + 0x10]
lea edi, [edx + eax*4]
movsx edx, byte [edi + 1]
call fcn.00533770
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x10], eax
mov byte [edi + 1], 0xfa
mov edi, dword [esp + 0x60]
jmp 0x506838
test ecx, ecx
je 0x506832
cmp edx, dword [ecx + 0xf0]
jb 0x506832
cmp edx, dword [ecx + 0xf4]
jae 0x506832
mov eax, dword [ecx + 0xec]
mov dword [edx], eax
dec dword [ecx + 0xe4]
mov dword [ecx + 0xec], edx
jmp 0x50683b
push edx
call fcn.00547110
add esp, 4
mov eax, dword [esp + 0xb0]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x10], ecx
jg 0x506864
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x50689c
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x64]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x1f
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 + 0x30], ecx
cmp dword [esi + 0x10], ecx
jg 0x5068bb
mov ecx, esi
call fcn.00533ee0
test eax, eax
jne 0x506a60
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x64]
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
jmp 0x506a60
mov eax, dword [edi]
mov dword [esp + 0x14], 0
cmp dword [eax], 1
jne 0x5069c9
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
cmp byte [ecx], 0x99
jne 0x5069c9
mov eax, 0x1000
test word [ecx + 2], ax
jne 0x5069c9
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x5069c9
cmp dword [eax], 1
jne 0x5069c9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp byte [eax], 0x9a
jne 0x5069c9
mov eax, dword [ecx + 4]
mov edx, 0x56d2d8
mov ecx, eax
mov dword [esp + 0x30], eax
call fcn.00544730
test eax, eax
jne 0x506968
mov byte [esp + 0x13], 1
jmp 0x50697f
mov ecx, dword [esp + 0x30]
mov edx, 0x56d2dc
call fcn.00544730
test eax, eax
jne 0x5069c9
mov byte [esp + 0x13], 2
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push 0
call fcn.00525a80
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], edx
test edx, edx
je 0x5069ce
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], edx
cmp byte [eax + 0x1e], 0
jne 0x5069ce
mov eax, dword [edx + 0xc]
cmp byte [esp + 0x13], 1
mov dword [esp + 0x28], edx
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov byte [eax], 0x98
jmp 0x5069ce
mov byte [esp + 0x13], 0
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00507070
movzx eax, byte [esp + 0x13]
mov ecx, ebx
mov edx, dword [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x68]
call fcn.004fd320
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
jne 0x506a15
mov esi, dword [esp + 0x18]
mov ecx, esi
mov edx, dword [esp + 0x28]
call fcn.00524b90
jmp 0x506b21
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00506bb0
cmp dword [esp + 0x14], 0
jne 0x506a49
cmp byte [esp + 0x13], 0
je 0x506a49
mov eax, dword [esp + 0x24]
mov edx, 1
mov ecx, esi
push dword [eax + 0x14]
push 0
call fcn.00533d20
add esp, 8
mov ecx, dword [esp + 0x24]
call fcn.004fcd10
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00506f20
mov edx, dword [esp + 0x40]
mov ecx, ebx
push 8
push dword [esp + 0x58]
mov dword [esp + 0x58], 0
call fcn.00521050
mov eax, dword [esp + 0x5c]
mov edx, edi
push eax
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0xffffffffffffffff
push 0
push 0
push 0
push dword [edi]
call fcn.0050ced0
mov edx, dword [esp + 0x50]
add esp, 0x28
mov ecx, dword [esp + 0x18]
call fcn.00524b90
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x506abe
mov eax, dword [esp + 0x54]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
cmp dword [esp + 0x50], 0
je 0x506adb
mov eax, dword [esp + 0x3c]
mov edx, edi
push dword [ebp + 8]
mov ecx, ebx
push dword [eax]
push esi
call fcn.0050c890
add esp, 0xc
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x506af7
mov eax, dword [esp + 0xc0]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp byte [eax], 5
jne 0x506b13
push dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov ecx, ebx
call fcn.0050c450
add esp, 4
mov esi, dword [esp + 0x18]
jmp 0x506b26
mov esi, eax
jmp 0x506b21
mov esi, dword [esp + 0x18]
mov edi, 1
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x506b57
cmp ecx, dword [esi + 0xf0]
jb 0x506b57
cmp ecx, dword [esi + 0xf4]
jae 0x506b57
mov eax, dword [esi + 0xec]
mov dword [ecx], eax
dec dword [esi + 0xe4]
mov dword [esi + 0xec], ecx
jmp 0x506b60
push ecx
call fcn.00547110
add esp, 4
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x506b98
cmp ecx, dword [esi + 0xf0]
jb 0x506b98
cmp ecx, dword [esi + 0xf4]
jae 0x506b98
mov eax, dword [esi + 0xec]
mov dword [ecx], eax
mov eax, edi
dec dword [esi + 0xe4]
mov dword [esi + 0xec], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00547110
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret