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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
mov ebx, edx
mov dword [esp + 0x14], ecx
push esi
mov esi, dword [ecx + 8]
push edi
mov edi, dword [ebx + 0x44]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], eax
test esi, esi
jne 0x500a4f
cmp dword [ecx + 0x74], esi
jne 0x500a48
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x500a48
mov byte [ecx + 0x17], 1
call fcn.004a5660
mov esi, eax
mov ecx, dword [ebx + 0x20]
xorps xmm0, xmm0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
movsx eax, word [ecx + 0x2a]
dec dword [ebx + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x40], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x24], 0
lea ecx, [eax + 1]
mov dword [esp + 0x10], 0
mov dword [esp + 0x34], ecx
lea ecx, [eax + 2]
add eax, 3
mov dword [esp + 0x14], 0
mov dword [esp + 0x80], eax
mov al, byte [edi + 0x11]
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x70], ecx
cmp al, 0x56
je 0x500b87
cmp al, 0x5a
je 0x500b23
mov dword [esp + 0x6c], 2
jmp 0x500ba9
cmp dword [edi + 0x58], 0
jne 0x500ba9
mov ecx, edi
nop
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax + 0x20]
cmp eax, str.nth_value
je 0x500ba9
cmp eax, str.first_value
je 0x500ba9
cmp eax, str.lead
je 0x500ba9
cmp eax, 0x5a74fc
je 0x500ba9
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x500b30
cmp byte [edi + 0x12], 0x58
jne 0x500b7d
cmp byte [edi + 0x10], 0x59
je 0x500ba9
mov edx, dword [edi + 0x1c]
mov ecx, ebx
call fcn.005009a0
test eax, eax
je 0x500ba9
mov dword [esp + 0x6c], 3
jmp 0x500ba9
mov dword [esp + 0x6c], 1
jmp 0x500ba9
cmp byte [edi + 0x10], 0x59
je 0x500ba9
mov edx, dword [edi + 0x18]
mov ecx, ebx
call fcn.005009a0
mov ecx, dword [esp + 0x6c]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [esp + 0x6c], ecx
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 1]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x44]
inc ecx
add eax, ecx
mov dword [esp + 0x3c], eax
lea ecx, [eax + 1]
mov dword [ebx + 0x2c], ecx
mov al, byte [edi + 0x11]
cmp al, 0x58
je 0x500bd1
mov edx, ecx
cmp al, 0x56
jne 0x500bdd
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
mov edx, eax
mov dword [ebx + 0x2c], eax
mov al, byte [edi + 0x12]
cmp al, 0x58
je 0x500be8
cmp al, 0x56
jne 0x500bf4
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov edx, eax
mov dword [ebx + 0x2c], eax
cmp byte [edi + 0x10], 0x4c
je 0x500c53
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x500c06
mov ecx, dword [eax]
jmp 0x500c08
xor ecx, ecx
mov eax, dword [edi + 0x4c]
add eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x500c28
mov ebx, dword [esp + 0x28]
add ebx, dword [eax]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x1c]
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
lea eax, [edx + ecx]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x74], edx
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x7c], edx
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x84], edx
mov dword [ebx + 0x2c], eax
mov edx, dword [esp + 0x44]
xor ebx, ebx
test edx, edx
jle 0x500cbf
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0x6c]
lea edx, [edi + ebx]
cmp dword [esi + 0x70], ecx
jg 0x500c83
push edx
push ebx
push dword [esp + 0x58]
mov edx, 0x59
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x500cb2
mov edi, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x44]
inc ebx
cmp ebx, edx
jl 0x500c61
mov edi, dword [esp + 0x20]
mov ecx, dword [esi + 0x6c]
mov ebx, dword [esp + 0x38]
cmp dword [esi + 0x70], ecx
jg 0x500ce2
push dword [esp + 0x3c]
mov ecx, esi
push edx
push ebx
mov edx, 0x5b
call fcn.004a5870
add esp, 0xc
jmp 0x500d0d
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 8]
test edx, edx
je 0x500ece
mov eax, dword [edx]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x4c]
add eax, ebx
mov ebx, dword [esp + 0x1c]
push 0
push 0
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.004e0880
inc dword [ebx + 0x2c]
add esp, 8
mov edx, dword [edi + 0x44]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x2c]
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x70], ebx
jg 0x500d6e
push dword [esp + 0x44]
mov ecx, esi
push edx
push dword [esp + 0x40]
mov edx, 0x56
call fcn.004a5870
add esp, 0xc
mov ebx, eax
jmp 0x500da1
mov edi, dword [esp + 0x38]
lea eax, [ebx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x56
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
mov edx, dword [esp + 0x50]
cmp byte [ecx + 0x51], 0
je 0x500dbd
push edx
mov edx, 0xfffffff7
call fcn.004a63f0
add esp, 4
jmp 0x500dcf
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov ecx, dword [esi + 0x6c]
lea edx, [ebx + 2]
add ebx, 4
cmp dword [esi + 0x70], ecx
jg 0x500df1
push edx
push ebx
push edx
mov edx, 0x10
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x500e1c
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x48], ecx
cmp dword [esi + 0x70], ecx
jg 0x500e45
push 0
push 0
push dword [esp + 0x2c]
mov edx, 0xc
mov ecx, esi
call fcn.004a5870
add esp, 0xc
mov dword [esp + 0x48], eax
jmp 0x500e78
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xc
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 edx, dword [esp + 0x44]
mov ecx, dword [esi + 0x6c]
dec edx
mov ebx, dword [edi + 0x44]
cmp dword [esi + 0x70], ecx
jg 0x500e9f
push edx
push ebx
push dword [esp + 0x40]
mov edx, 0x4d
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x500ece
mov edi, dword [esp + 0x38]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x500ef7
mov ebx, dword [esp + 0x3c]
mov edx, 0x78
push 0
inc ebx
mov ecx, esi
push ebx
push dword [esp + 0x3c]
call fcn.004a5870
mov edx, dword [esp + 0x48]
add esp, 0xc
jmp 0x500f2d
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea ebx, [edx + 1]
mov dword [eax + ecx*4 + 8], ebx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x500f4c
push ebx
push edx
push dword [esp + 0x3c]
mov edx, 0x79
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x500f7b
mov edi, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov edx, dword [edi + 0x54]
mov dword [esp + 0x50], ecx
cmp dword [esi + 0x70], ecx
jg 0x500fa3
push ebx
push 0
push edx
mov edx, 0x34
mov ecx, esi
call fcn.004a5870
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x500fd2
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x34
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0x1c]
mov edx, edi
mov ecx, ebx
call fcn.004ffc40
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x501016
mov edx, dword [edi + 0x18]
mov ecx, ebx
push eax
call fcn.004c0600
mov edx, dword [esp + 0x14]
xor eax, eax
add esp, 4
mov ecx, 3
cmp byte [edi + 0x10], 0x59
cmove eax, ecx
mov ecx, ebx
push eax
call fcn.004fe1d0
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x501050
mov edx, dword [edi + 0x1c]
push ecx
mov ecx, ebx
call fcn.004c0600
mov edx, dword [esp + 0x18]
add esp, 4
cmp byte [edi + 0x10], 0x59
mov ecx, 4
mov eax, 1
cmove eax, ecx
mov ecx, ebx
push eax
call fcn.004fe1d0
mov ecx, dword [esp + 0x18]
add esp, 4
cmp byte [edi + 0x10], 0x59
mov edx, dword [esp + 0x10]
je 0x501223
mov al, byte [edi + 0x11]
cmp al, byte [edi + 0x12]
jne 0x501223
test edx, edx
je 0x501223
mov ebx, dword [esi + 0x6c]
xor edx, edx
cmp al, 0x56
sete dl
lea edx, [edx*2 + 0x37]
cmp dword [esi + 0x70], ebx
jg 0x50109d
push ecx
push 0
push dword [esp + 0x18]
mov ecx, esi
call fcn.004a5870
add esp, 0xc
mov ebx, eax
jmp 0x5010d8
lea eax, [ebx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
xor edx, edx
lea ecx, [esp + 0x54]
call fcn.004fed30
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x501107
push 0
push 1
push dword [esp + 0x80]
mov edx, 0x25
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x50113b
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
lea ecx, [esp + 0x54]
call fcn.004ff710
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x50116a
mov eax, dword [esp + 0x78]
mov edx, 0x8a
push 0
push 0
push eax
mov ecx, esi
mov dword [esp + 0x4c], eax
call fcn.004a5870
add esp, 0xc
jmp 0x5011a1
mov edx, dword [esp + 0x78]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [esp + 0x40], edx
mov dword [eax + ecx*4], 0x8a
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 ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5011c2
push 0
push dword [esp + 0x34]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.004a5870
add esp, 0xc
jmp 0x5011f5
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
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 eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x501207
mov eax, 0x5f50d8
jmp 0x501218
test ebx, ebx
lea eax, [edx - 1]
cmovns eax, ebx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov ebx, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x10]
cmp byte [edi + 0x11], 0x56
jne 0x501282
cmp byte [edi + 0x10], 0x59
je 0x501282
mov eax, dword [esp + 0x14]
test eax, eax
je 0x501282
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x501253
push edx
push eax
push edx
mov edx, 0x6a
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x501282
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x6a
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [edi + 0x11], 0x5a
je 0x5012d9
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x70]
cmp dword [esi + 0x70], ecx
jg 0x5012aa
push 0
push 1
push edx
mov edx, 0x25
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x5012d9
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x40]
cmp dword [esi + 0x70], ecx
jg 0x5012fb
push 0
push 1
push edx
mov edx, 0x25
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x50132a
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x80]
cmp dword [esi + 0x70], ecx
jg 0x50134f
push 0
push 1
push edx
mov edx, 0x25
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x50137e
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x501508
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x501508
mov edx, dword [ecx]
mov ecx, dword [esi + 0x6c]
dec edx
cmp dword [esi + 0x70], ecx
jg 0x5013b8
push edx
push eax
push dword [esp + 0x30]
mov edx, 0x4d
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x5013eb
mov edi, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x6c]
mov edx, dword [edx]
dec edx
cmp dword [esi + 0x70], ecx
jg 0x501414
push edx
push dword [esp + 0x78]
mov edx, 0x4d
mov ecx, esi
push dword [esp + 0x20]
call fcn.004a5870
add esp, 0xc
jmp 0x501447
mov ebx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x74]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax]
dec edx
cmp dword [esi + 0x70], ecx
jg 0x501473
push edx
push dword [esp + 0x80]
mov edx, 0x4d
mov ecx, esi
push dword [esp + 0x20]
call fcn.004a5870
add esp, 0xc
jmp 0x5014a6
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax]
dec edx
cmp dword [esi + 0x70], ecx
jg 0x5014d2
push edx
push dword [esp + 0x88]
mov edx, 0x4d
mov ecx, esi
push dword [esp + 0x20]
call fcn.004a5870
add esp, 0xc
jmp 0x501508
mov ebx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x84]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x501529
push 0
push dword [esp + 0x34]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.004a5870
add esp, 0xc
jmp 0x50155c
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
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 eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x50156e
mov eax, 0x5f50d8
jmp 0x501583
mov ecx, dword [esp + 0x50]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5015a5
push dword [esp + 0x30]
mov edx, dword [esp + 0x30]
mov ecx, ebx
push eax
push dword [esp + 0x30]
call fcn.004ffeb0
add esp, 0xc
mov al, byte [edi + 0x11]
cmp al, 0x56
jne 0x5016ce
push 0
push 0
mov edx, 3
lea ecx, [esp + 0x5c]
call fcn.005004a0
add esp, 8
cmp byte [edi + 0x12], 0x5a
je 0x501895
cmp byte [edi + 0x10], 0x59
lea ecx, [esp + 0x54]
jne 0x5016a2
dec dword [ebx + 0x38]
mov edx, 0x39
mov ebx, dword [ebx + 0x38]
mov eax, dword [esi + 0x6c]
push ebx
push dword [esp + 0x84]
mov dword [esp + 0x58], eax
push dword [esp + 0x1c]
push dword [esp + 0x84]
call fcn.00500080
push 0
push dword [esp + 0x24]
mov edx, 2
lea ecx, [esp + 0x6c]
call fcn.005004a0
push 0
push 0
mov edx, 1
lea ecx, [esp + 0x74]
call fcn.005004a0
mov ecx, dword [esi + 0x6c]
add esp, 0x20
mov edx, dword [esp + 0x50]
cmp dword [esi + 0x70], ecx
jg 0x501652
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x501681
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
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 ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x501816
push ebx
mov edx, esi
call fcn.004a5f70
add esp, 4
jmp 0x501895
push 0
push dword [esp + 0x18]
mov edx, 1
call fcn.005004a0
push 0
push dword [esp + 0x1c]
mov edx, 2
lea ecx, [esp + 0x64]
call fcn.005004a0
add esp, 0x10
jmp 0x501895
cmp byte [edi + 0x12], 0x58
jne 0x50174f
cmp al, 0x58
jne 0x5016e5
cmp byte [edi + 0x10], 0x59
jne 0x5016e5
mov ebx, 1
jmp 0x5016e7
xor ebx, ebx
push 0
push dword [esp + 0x18]
mov edx, 3
lea ecx, [esp + 0x5c]
call fcn.005004a0
add esp, 8
test ebx, ebx
je 0x501719
push 0
push dword [esp + 0x14]
mov edx, 2
lea ecx, [esp + 0x5c]
call fcn.005004a0
add esp, 8
push 0
push 0
mov edx, 1
lea ecx, [esp + 0x5c]
call fcn.005004a0
add esp, 8
test ebx, ebx
jne 0x501895
push ebx
push dword [esp + 0x14]
lea edx, [ebx + 2]
lea ecx, [esp + 0x5c]
call fcn.005004a0
add esp, 8
jmp 0x501895
xor ebx, ebx
lea ecx, [esp + 0x54]
push ebx
push ebx
lea edx, [ebx + 3]
call fcn.005004a0
add esp, 8
cmp byte [edi + 0x12], 0x5a
je 0x501895
cmp byte [edi + 0x10], 0x59
jne 0x501821
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5017b0
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
mov edx, 0x39
dec dword [ebx + 0x38]
mov ebx, dword [ebx + 0x38]
push ebx
push dword [esp + 0x84]
push eax
push dword [esp + 0x84]
call fcn.00500080
add esp, 0x10
push 0
push 0
mov edx, 1
lea ecx, [esp + 0x5c]
call fcn.005004a0
push 0
push dword [esp + 0x1c]
mov edx, 2
lea ecx, [esp + 0x64]
call fcn.005004a0
add esp, 0x10
cmp dword [esp + 0x14], 0
je 0x501895
push dword [esp + 0x50]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.004a59e0
mov ecx, dword [esi + 0xc]
add esp, 8
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x501816
push ebx
mov edx, esi
call fcn.004a5f70
add esp, 4
jmp 0x501895
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + ebx*4], eax
jmp 0x501895
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50183f
push 1
push 0
push eax
mov edx, 0x30
mov ecx, esi
call fcn.004a58b0
add esp, 0xc
mov ebx, eax
push 0
push 0
mov edx, 1
lea ecx, [esp + 0x5c]
call fcn.005004a0
push 0
push dword [esp + 0x1c]
mov edx, 2
lea ecx, [esp + 0x64]
call fcn.005004a0
add esp, 0x10
cmp dword [esp + 0x14], 0
je 0x501895
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x501881
mov eax, 0x5f50d8
jmp 0x501892
test ebx, ebx
lea eax, [edx - 1]
cmovns eax, ebx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x5018b3
push edx
mov edx, esi
call fcn.004a5f70
add esp, 4
jmp 0x5018bc
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
call fcn.004fb5d0
cmp dword [edi + 8], 0
je 0x501954
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x4c], ebx
cmp dword [esi + 0x70], ebx
jg 0x5018f7
push 0
push dword [esp + 0x28]
mov edx, 0x45
mov ecx, esi
push 0
call fcn.004a5870
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp 0x50192a
mov edx, dword [esp + 0x24]
lea eax, [ebx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
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 eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x50193c
mov eax, 0x5f50d8
jmp 0x501951
mov ecx, dword [esp + 0x48]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x40], edx
cmp dword [esi + 0x70], edx
jg 0x50197d
push 0
push 0
push dword [esp + 0x3c]
mov edx, 0x25
mov ecx, esi
call fcn.004a5870
add esp, 0xc
mov dword [esp + 0x40], eax
jmp 0x5019b0
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x25
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
cmp byte [edi + 0x12], 0x58
mov bl, byte [edi + 0x11]
jne 0x501a19
cmp bl, 0x58
jne 0x5019cb
cmp byte [edi + 0x10], 0x59
jne 0x5019cb
mov ebx, 1
jmp 0x5019cd
xor ebx, ebx
push 0
push dword [esp + 0x18]
mov edx, 3
lea ecx, [esp + 0x5c]
call fcn.005004a0
add esp, 8
test ebx, ebx
je 0x5019ff
push 0
push dword [esp + 0x14]
mov edx, 2
lea ecx, [esp + 0x5c]
call fcn.005004a0
add esp, 8
push 0
push 0
mov edx, 1
lea ecx, [esp + 0x5c]
call fcn.005004a0
add esp, 8
jmp 0x501c84
push 0
push 0
mov edx, 3
lea ecx, [esp + 0x5c]
call fcn.005004a0
add esp, 8
lea ecx, [esp + 0x54]
push 1
cmp bl, 0x56
jne 0x501be2
cmp byte [edi + 0x10], 0x59
mov ebx, dword [esi + 0x6c]
jne 0x501a70
push dword [esp + 0x14]
mov edx, 2
call fcn.005004a0
push 1
push 0
mov edx, 1
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x64]
call fcn.005004a0
mov dword [esp + 0x54], eax
jmp 0x501aaf
cmp byte [edi + 0x12], 0x5a
mov edx, 1
jne 0x501a8a
push dword [esp + 0x14]
call fcn.005004a0
push 1
push 0
jmp 0x501a99
push dword [esp + 0x18]
call fcn.005004a0
push 1
push dword [esp + 0x1c]
mov edx, 2
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x64]
call fcn.005004a0
mov dword [esp + 0x58], eax
mov ecx, dword [esi + 0x6c]
add esp, 0x10
cmp dword [esi + 0x70], ecx
jg 0x501ad0
push 0
push ebx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x501aff
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x501b11
mov eax, 0x5f50d8
jmp 0x501b26
mov ecx, dword [esp + 0x48]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
lea ecx, [esp + 0x54]
mov eax, dword [esi + 0x6c]
mov edx, 1
push 1
push 0
mov dword [esp + 0x58], eax
call fcn.005004a0
mov ecx, dword [esi + 0x6c]
add esp, 8
mov ebx, eax
mov edx, dword [esp + 0x50]
cmp dword [esi + 0x70], ecx
jg 0x501b69
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x501b98
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
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 eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x501baa
mov eax, 0x5f50d8
jmp 0x501bbf
mov ecx, dword [esp + 0x44]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x6c]
test ebx, ebx
jns 0x501bcc
lea ebx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x501c78
mov eax, 0x5f50d8
jmp 0x501c81
mov eax, dword [esi + 0x6c]
mov edx, 1
push 0
mov dword [esp + 0x58], eax
call fcn.005004a0
push 0
push dword [esp + 0x1c]
mov edx, 2
lea ecx, [esp + 0x64]
mov ebx, eax
call fcn.005004a0
mov ecx, dword [esi + 0x6c]
add esp, 0x10
mov edx, dword [esp + 0x50]
cmp dword [esi + 0x70], ecx
jg 0x501c30
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x501c5f
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
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 edx, dword [esi + 0x6c]
test ebx, ebx
jns 0x501c69
lea ebx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x501c78
mov eax, 0x5f50d8
jmp 0x501c81
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x501c96
mov eax, 0x5f50d8
jmp 0x501cab
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x501cd2
push 0
push 0
push dword [esp + 0x80]
mov edx, 0x8a
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x501d06
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x8a
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
cmp dword [edi + 8], 0
je 0x501e3b
mov edx, dword [edi + 0x58]
test edx, edx
je 0x501db8
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x501d39
push 0
push edx
push 1
mov edx, 0x45
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x501d68
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
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 ecx, dword [esi + 0x6c]
mov edi, dword [edi + 0x5c]
cmp dword [esi + 0x70], ecx
jg 0x501d89
push 0
push edi
push 0
mov edx, 0x45
mov ecx, esi
call fcn.004a5870
add esp, 0xc
jmp 0x501db8
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x501dca
mov eax, 0x5f50d8
jmp 0x501ddf
mov ecx, dword [esp + 0x4c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x501e08
push 0
push 0
push dword [esp + 0x2c]
mov edx, 0x41
mov ecx, esi
call fcn.004a5870
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x41
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
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret