Function at 0x508120
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 0x5083b4
cmp byte [esi + 0x1e], 0
jne 0x5083b4
cmp dword [ebx + 0x40], 0
jne 0x5083b4
push 0x2c
lea eax, [esp + 0x94]
push 0
push eax
call fcn.004359b0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [eax], 4
ja 0x508193
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.00527810
mov ecx, 0xfffe
mov dword [edi + 0x18], 0
and word [edi + 6], cx
push 0
mov edx, edi
mov ecx, ebx
call fcn.00509f40
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 0x5097a1
cmp byte [esi + 0x1e], 0
jne 0x5097a1
movzx eax, word [edi + 6]
mov ecx, ebx
shr eax, 2
and eax, 1
mov dword [esp + 0x28], eax
call fcn.0050e630
mov esi, eax
mov dword [esp + 0x58], esi
test esi, esi
je 0x50979d
mov edx, dword [edi + 0x1c]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
test edx, edx
jne 0x50834d
mov eax, dword [esp + 0x4c]
nop
movsx eax, word [eax]
cmp ecx, eax
jge 0x50834d
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 0x508339
cmp byte [eax + 0x1c], 0
jne 0x508339
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0
mov ecx, edi
call fcn.00529a30
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.0050ae00
add esp, 0xc
test eax, eax
je 0x5082a4
cmp dword [esp + 0x24], 0
je 0x50829b
or word [edi + 6], 4
mov dword [esp + 0x28], 1
or eax, 0xffffffff
mov dword [esp + 0x3c], eax
jmp 0x5082f0
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.00508120
mov eax, dword [esp + 0x20]
add esp, 4
mov byte [eax + 0x1c], 1
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x1e], 0
jne 0x509799
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0
mov ecx, edi
call fcn.00529a30
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 0x50833d
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 0x508200
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 0x5083d6
cmp dword [edi + 0x24], 0
jne 0x5083c0
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 0x508387
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x5083c0
cmp ecx, eax
jle 0x5083c0
push str.too_many_terms_in_compound_SELECT
push ebx
call fcn.00547510
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.0050d560
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.0050fff0
add esp, 4
test eax, eax
jne 0x50979d
mov al, byte [edi + 6]
and al, 5
cmp al, 1
jne 0x508422
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
push 0
call fcn.00528700
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 0x508466
mov edx, eax
mov ecx, ebx
call fcn.0050fa40
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.00536930
add esp, 0x14
mov dword [esp + 0x1c], eax
mov dword [edi + 0x40], eax
jmp 0x50846e
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [ebp + 8]
cmp byte [eax], 9
jne 0x50848e
mov ecx, dword [esp + 0x3c]
mov edx, 0x28
push dword [ecx]
mov ecx, esi
push dword [eax + 4]
call fcn.005369a0
add esp, 8
mov ecx, esi
call fcn.00536850
push eax
mov edx, edi
mov dword [esp + 0xc4], eax
mov ecx, ebx
call fcn.0050e4c0
add esp, 4
cmp dword [esp + 0x14], 0
je 0x5084e0
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.0050fa40
push 0xfffffffffffffff0
push eax
push 0
push 0
push dword [esp + 0x78]
mov edx, 0x28
mov ecx, esi
call fcn.00536930
add esp, 0x14
jmp 0x5084e8
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x38]
jne 0x508582
test edx, edx
jne 0x508586
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x68]
mov ecx, ebx
call fcn.004fffa0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x50979d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], eax
test edx, edx
js 0x508554
test eax, eax
jne 0x508554
push 1
mov ecx, esi
call fcn.00536090
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.0050fb50
mov ecx, dword [esp + 0x60]
add esp, 0x20
call fcn.004ff990
jmp 0x50973e
test edx, edx
je 0x5085c0
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jle 0x5085a6
add ecx, 0x10
xor esi, esi
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], si
test eax, eax
jg 0x508594
mov esi, dword [esp + 0x58]
mov eax, dword [edx]
mov ecx, dword [edx + 0xc]
test eax, eax
jle 0x5085c0
add ecx, 0x10
xor edx, edx
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], dx
test eax, eax
jg 0x5085b2
mov ecx, esi
call fcn.00536850
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 0x508628
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 0x508696
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], 0x523860
mov dword [esp + 0x84], 0x523830
mov dword [esp + 0x8c], eax
call fcn.0052ba20
inc esi
lea edi, [edi + 0x14]
cmp esi, dword [ebx]
jl 0x508650
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x5086f6
cmp dword [ecx], 0
mov eax, dword [ecx + 0xc]
jle 0x5086f6
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], 0x523860
mov dword [esp + 0x84], 0x523830
mov dword [esp + 0x8c], eax
call fcn.0052ba20
inc edi
lea ebx, [ebx + 0x14]
cmp edi, dword [esi]
jl 0x5086b0
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x508730
lea ecx, [esp + 0xd4]
mov dword [esp + 0x80], 0x523860
mov dword [esp + 0x8c], ecx
mov edx, eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x84], 0x523830
call fcn.0052ba20
mov eax, dword [esp + 0xa4]
xor edx, edx
mov dword [esp + 0xac], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0xb4], edx
jle 0x5087e3
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 0x5087c2
mov edi, dword [eax + 0xc]
xor esi, esi
cmp dword [eax], esi
jle 0x5087c2
mov ebx, eax
mov edx, dword [edi]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], 0x523860
mov dword [esp + 0x84], 0x523830
mov dword [esp + 0x8c], eax
call fcn.0052ba20
inc esi
lea edi, [edi + 0x14]
cmp esi, dword [ebx]
jl 0x508780
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 0x508760
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 0x509799
mov edx, dword [esp + 0x38]
test edx, edx
je 0x5092d6
mov eax, dword [ebx + 0x44]
mov ecx, ebx
mov dword [esp + 0x94], eax
inc eax
mov dword [ebx + 0x44], eax
call fcn.0050fa40
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.00536930
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.00536850
inc dword [ebx + 0x48]
mov ecx, esi
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x14], eax
call fcn.00536850
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.005369a0
push dword [esp + 0x4c]
mov edx, 7
mov ecx, esi
push 0
call fcn.005369a0
push dword [esp + 0x2c]
mov edx, 2
mov ecx, esi
push dword [esp + 0x28]
call fcn.005369a0
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x38]
push 0
push eax
push dword [esp + 0x80]
mov ecx, ebx
call fcn.004fffa0
add esp, 0x24
mov dword [esp + 0x24], eax
test eax, eax
je 0x50979d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x508910
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], 0
jmp 0x508c0e
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 0x508968
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 0x508942
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x70], edi
mov edx, edi
mov ecx, ebx
call fcn.005236e0
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.00525df0
mov edx, dword [esp + 0x38]
push 0
push edx
mov edx, dword [esp + 0x28]
call fcn.00524420
mov ecx, dword [esp + 0x74]
mov edx, 0x34
add ecx, dword [esp + 0x40]
push ecx
push dword [esp + 0xa0]
mov ecx, esi
call fcn.005369a0
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 0x508a8b
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 0x508a6a
push 0
push edi
push dword [edx + eax + 4]
mov ecx, ebx
push dword [edx + eax + 8]
mov edx, dword [edx + eax]
call fcn.00526000
add esp, 0x10
mov dword [esp + 0x34], eax
cmp edi, eax
je 0x508a5c
mov eax, dword [esi + 0xc]
mov dword [esp + 0x74], eax
cmp dword [esi + 0x10], eax
jg 0x508a28
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508a5c
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 0x5089e0
mov edi, dword [esp + 0x70]
mov al, byte [ebx + 0x15]
test al, al
jne 0x508a9a
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
jmp 0x508aa6
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 0x508aca
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508aff
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 0x508b25
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508b5f
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 0x508b63
mov edx, dword [esp + 0x20]
test edx, edx
je 0x508b91
cmp byte [ebx + 0x15], 8
jae 0x508b91
xor ecx, ecx
lea eax, [ebx + 0x60]
cmp dword [eax + 0x10], edx
je 0x508b8d
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x508b72
movzx eax, byte [ebx + 0x15]
mov dword [ebx + eax*4 + 0x18], edx
inc byte [ebx + 0x15]
jmp 0x508b91
mov byte [eax + 9], 1
cmp edi, dword [ebx + 0x38]
jle 0x508ba0
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], eax
mov ecx, dword [esp + 0x24]
call fcn.004ff990
mov edi, dword [esi + 0xc]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x34], eax
cmp dword [esi + 0x10], edi
jg 0x508bc7
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508bff
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.00525df0
mov eax, dword [esi + 0xc]
mov ecx, ebx
mov dword [esp + 0x78], eax
call fcn.00525df0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], 0
mov edi, dword [eax]
test edi, edi
jle 0x508cff
mov edi, dword [esp + 0x7c]
xor edx, edx
mov dword [esp + 0x70], edx
jmp 0x508c44
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x60], 0
je 0x508ca7
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 0x508c71
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508cda
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 0x508cda
mov byte [esp + 0x90], 1
mov ecx, ebx
mov eax, dword [eax + 0xc]
push edi
mov edx, dword [edx + eax]
call fcn.005249d0
add esp, 4
cmp eax, edi
je 0x508cda
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x508cda
push edi
push eax
mov edx, 0xf
call fcn.005369a0
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 0x508c40
mov edi, ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x34], edx
cmp dword [esi + 0x10], edx
jg 0x508d21
mov ecx, esi
call fcn.00536b60
test eax, eax
je 0x508d1d
mov edx, 1
jmp 0x508d5c
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.00535e80
mov edi, dword [esi + 0xc]
add esp, 8
cmp dword [esi + 0x10], edi
jg 0x508d7f
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508db1
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.00525b90
mov ecx, dword [esi + 0xc]
add esp, 8
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x10], ecx
jg 0x508de7
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508e2a
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 0x508e45
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508e82
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 0x508e9d
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508ed5
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 0x508ee6
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.00509830
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x508f07
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508f3f
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 0x508f9e
mov edi, dword [esi + 0xc]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x10], edi
jg 0x508f64
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x508fb7
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 0x508fb7
mov ecx, dword [esp + 0x24]
call fcn.004ff990
mov edx, dword [esp + 0x30]
mov ecx, esi
push 1
call fcn.00536090
add esp, 4
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x508fca
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x509009
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 0x50901c
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x509054
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 0x50906b
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x5090a4
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 0x5090b7
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x5090f6
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 0x50910f
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 0x509122
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x509158
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 0x509173
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x5091b6
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.00509ba0
mov edx, dword [esp + 0x40]
inc edi
push 8
push edi
mov ecx, ebx
call fcn.00523cd0
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.0050fb50
mov ecx, dword [esi + 0xc]
add esp, 0x28
mov dword [esp + 0x30], ecx
cmp dword [esi + 0x10], ecx
jg 0x509214
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x509253
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 0x50926c
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.00509cf0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
cmp dword [esi + 0x10], ecx
jg 0x509299
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x509725
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 0x509725
cmp dword [edi + 0xc], 0
mov dword [esp + 0x28], 0
jne 0x509578
mov eax, dword [edi]
cmp dword [eax], 1
jne 0x509578
mov ecx, dword [edi + 8]
cmp word [ecx], 1
jne 0x509578
cmp dword [ecx + 0x18], 0
jne 0x509578
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 0x509578
cmp byte [edx], 0x99
jne 0x509578
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 4]
test byte [eax + 3], 0x20
je 0x509578
test byte [edx + 2], 0x10
jne 0x509578
mov edx, dword [ecx + 0x40]
mov ecx, 0xfff0bdc0
mov dword [esp + 0x1c], ecx
test edx, edx
je 0x509385
mov eax, dword [ebx]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [eax + 4], ecx
jle 0x509385
mov eax, dword [eax + 8]
mov edi, dword [ebx]
add eax, 0xc
nop dword [eax]
cmp dword [eax], edx
je 0x50937d
inc ecx
add eax, 0x10
cmp ecx, dword [edi + 4]
jl 0x509370
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.0051c7f0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x5093ee
xor edx, edx
test edx, edx
je 0x5093c3
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jge 0x5093c5
mov edx, ecx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x5093b7
test edx, edx
je 0x5093ee
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 0xc]
jge 0x5093ee
mov eax, dword [edx + 0x14]
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.0051c570
mov dword [esp + 0x68], eax
mov ecx, dword [esi + 0xc]
mov eax, ecx
mov dword [esp + 0x30], ecx
cmp dword [esi + 0x10], ecx
jg 0x50940e
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x509447
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 0x5094bb
cmp dword [esi + 0x14], 0
mov ecx, dword [esi]
je 0x509488
cmp byte [ecx + 0x1e], 0
jne 0x509488
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.005363f0
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x10], eax
mov byte [edi + 1], 0xfa
mov edi, dword [esp + 0x60]
jmp 0x5094b8
test ecx, ecx
je 0x5094b2
cmp edx, dword [ecx + 0xf0]
jb 0x5094b2
cmp edx, dword [ecx + 0xf4]
jae 0x5094b2
mov eax, dword [ecx + 0xec]
mov dword [edx], eax
dec dword [ecx + 0xe4]
mov dword [ecx + 0xec], edx
jmp 0x5094bb
push edx
call fcn.00549d90
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 0x5094e4
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x50951c
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 0x50953b
mov ecx, esi
call fcn.00536b60
test eax, eax
jne 0x5096e0
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 0x5096e0
mov eax, dword [edi]
mov dword [esp + 0x14], 0
cmp dword [eax], 1
jne 0x509649
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
cmp byte [ecx], 0x99
jne 0x509649
mov eax, 0x1000
test word [ecx + 2], ax
jne 0x509649
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x509649
cmp dword [eax], 1
jne 0x509649
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp byte [eax], 0x9a
jne 0x509649
mov eax, dword [ecx + 4]
mov edx, 0x5702c8
mov ecx, eax
mov dword [esp + 0x30], eax
call fcn.005473b0
test eax, eax
jne 0x5095e8
mov byte [esp + 0x13], 1
jmp 0x5095ff
mov ecx, dword [esp + 0x30]
mov edx, 0x5702cc
call fcn.005473b0
test eax, eax
jne 0x509649
mov byte [esp + 0x13], 2
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push 0
call fcn.00528700
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], edx
test edx, edx
je 0x50964e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], edx
cmp byte [eax + 0x1e], 0
jne 0x50964e
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 0x50964e
mov byte [esp + 0x13], 0
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00509cf0
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.004fffa0
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
jne 0x509695
mov esi, dword [esp + 0x18]
mov ecx, esi
mov edx, dword [esp + 0x28]
call fcn.00527810
jmp 0x5097a1
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00509830
cmp dword [esp + 0x14], 0
jne 0x5096c9
cmp byte [esp + 0x13], 0
je 0x5096c9
mov eax, dword [esp + 0x24]
mov edx, 1
mov ecx, esi
push dword [eax + 0x14]
push 0
call fcn.005369a0
add esp, 8
mov ecx, dword [esp + 0x24]
call fcn.004ff990
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00509ba0
mov edx, dword [esp + 0x40]
mov ecx, ebx
push 8
push dword [esp + 0x58]
mov dword [esp + 0x58], 0
call fcn.00523cd0
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.0050fb50
mov edx, dword [esp + 0x50]
add esp, 0x28
mov ecx, dword [esp + 0x18]
call fcn.00527810
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x50973e
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 0x50975b
mov eax, dword [esp + 0x3c]
mov edx, edi
push dword [ebp + 8]
mov ecx, ebx
push dword [eax]
push esi
call fcn.0050f510
add esp, 0xc
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x509777
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 0x509793
push dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov ecx, ebx
call fcn.0050f0d0
add esp, 4
mov esi, dword [esp + 0x18]
jmp 0x5097a6
mov esi, eax
jmp 0x5097a1
mov esi, dword [esp + 0x18]
mov edi, 1
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x5097d7
cmp ecx, dword [esi + 0xf0]
jb 0x5097d7
cmp ecx, dword [esi + 0xf4]
jae 0x5097d7
mov eax, dword [esi + 0xec]
mov dword [ecx], eax
dec dword [esi + 0xe4]
mov dword [esi + 0xec], ecx
jmp 0x5097e0
push ecx
call fcn.00549d90
add esp, 4
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x509818
cmp ecx, dword [esi + 0xf0]
jb 0x509818
cmp ecx, dword [esi + 0xf4]
jae 0x509818
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.00549d90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret