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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, ecx
mov dword [esp + 0xc], edx
push ebx
push esi
push edi
mov ebx, dword [eax + 0xc]
mov ecx, ebx
mov edi, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], ebx
call fcn.00533bd0
mov ecx, ebx
mov dword [esp + 0x3c], eax
call fcn.00533bd0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov al, byte [ecx + 4]
mov edx, dword [ecx + 0x18]
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 0x70
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
je 0x508d3e
cmp byte [edi + 0x1e], 0
mov esi, 1
mov dword [esp + 0x50], esi
jne 0x508d3e
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
cmp esi, dword [eax]
mov eax, dword [esp + 0x24]
jg 0x508d3e
mov edx, dword [edx + 0xc]
xor ecx, ecx
test eax, eax
jle 0x508c27
add edx, 0xe
mov ebx, eax
nop
movzx eax, word [edx]
cmp eax, esi
je 0x508c1f
inc ecx
add edx, 0x14
cmp ecx, ebx
jl 0x508c10
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jne 0x508d1a
cmp byte [edi + 0x1e], 0
je 0x508c3e
xor esi, esi
xor eax, eax
jmp 0x508ccb
cmp byte [edi + 0xe2], 0
je 0x508c84
mov eax, 0x41
cmp ax, word [edi + 0xe0]
ja 0x508c84
mov esi, dword [edi + 0xec]
test esi, esi
je 0x508c84
mov eax, dword [esi]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x508c9e
mov dword [edi + 0xe8], eax
jmp 0x508c9e
push 0x41
call fcn.00547470
mov esi, eax
add esp, 4
test esi, esi
jne 0x508c98
mov byte [edi + 0x1e], 1
mov eax, esi
test esi, esi
je 0x508cc9
push 0x41
push 0
push esi
call fcn.004359a0
add esp, 0xc
mov byte [esi], 0x81
or eax, 0xffffffff
lea ecx, [esi + 4]
mov word [esi + 0x28], ax
lea eax, [esi + 0x40]
mov dword [ecx], eax
mov byte [eax], 0
mov dword [esi + 0x38], 1
jmp 0x508cce
mov esi, eax
lea ecx, [eax + 4]
test esi, esi
je 0x508d32
mov edx, dword [esp + 0x2c]
mov eax, 0x800
or word [esi + 2], ax
mov eax, dword [esp + 0x50]
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
push esi
call fcn.00524f10
mov ecx, dword [esp + 0x60]
mov edx, eax
mov esi, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x2c], edx
mov eax, dword [edx + 0xc]
mov word [eax + ecx + 0xe], si
mov eax, dword [esp + 0x24]
inc eax
add ecx, 0x14
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], ecx
jmp 0x508d1e
mov edx, dword [esp + 0x2c]
inc esi
cmp byte [edi + 0x1e], 0
mov dword [esp + 0x50], esi
jne 0x508d3e
mov ecx, dword [esp + 0x18]
jmp 0x508bf3
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [eax*4]
test edi, edi
je 0x508de8
cmp byte [edi + 0x1e], 0
je 0x508d9f
mov dword [esp + 0x4c], 0
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov edx, eax
push 0
mov dword [ecx + 0x18], eax
mov ecx, dword [esi]
call fcn.00525a80
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp byte [esp + 0x13], 0x70
mov dword [ecx + 0x18], eax
jne 0x508fa2
mov dword [esp + 0x2c], 0
jmp 0x5091d3
cmp byte [edi + 0xe2], 0
je 0x508de8
movzx eax, word [edi + 0xe0]
cmp ecx, eax
jg 0x508de8
mov edx, dword [edi + 0xec]
mov dword [esp + 0x4c], edx
test edx, edx
je 0x508de8
mov eax, dword [edx]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x508de4
mov dword [edi + 0xe8], eax
mov esi, edx
jmp 0x508e0b
push ecx
call fcn.00547470
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x508e01
test edi, edi
je 0x508e01
mov byte [edi + 0x1e], 1
mov esi, eax
test eax, eax
je 0x508d5b
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov edx, dword [edx + 0xc]
cmp dword [esp + 0x24], ecx
jle 0x508e34
mov ebx, dword [esp + 0x24]
add edx, 0xe
movzx eax, word [edx]
lea edx, [edx + 0x14]
dec eax
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jl 0x508e21
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
lea ecx, [esi + ecx*4]
test edi, edi
je 0x508e93
cmp byte [edi + 0x1e], 0
jne 0x508d5b
cmp byte [edi + 0xe2], 0
je 0x508e93
movzx eax, word [edi + 0xe0]
cmp ecx, eax
jg 0x508e93
mov edx, dword [edi + 0xec]
mov dword [esp + 0x38], edx
test edx, edx
je 0x508e93
mov eax, dword [edx]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x508eb6
mov dword [edi + 0xe8], eax
jmp 0x508eb6
push ecx
call fcn.00547470
mov edx, eax
add esp, 4
mov dword [esp + 0x38], edx
test edx, edx
jne 0x508eb6
test edi, edi
je 0x508eae
mov byte [edi + 0x1e], 1
test edx, edx
je 0x508d63
lea eax, [esi + 3]
mov word [edx + 6], si
lea eax, [edx + eax*4]
mov dword [edx + 8], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x49]
mov byte [edx + 4], al
xor edx, edx
mov dword [esp + 0x5c], edx
test esi, esi
jle 0x508d63
mov ebx, dword [esp + 0x38]
xor edi, edi
add ebx, 0xc
mov ecx, 0x100
nop dword [eax + eax]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
mov esi, dword [edi + eax]
test word [esi + 2], cx
je 0x508f05
mov ecx, dword [esi + 0x14]
jmp 0x508f64
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + edx*4]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x64], eax
test edx, edx
je 0x508f34
mov ecx, dword [esp + 0x14]
push eax
call fcn.0050b7f0
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x508f54
mov eax, dword [esp + 0x64]
jmp 0x508f36
xor ecx, ecx
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
cmp eax, dword [edx]
jge 0x508f54
mov edx, dword [edx + 0xc]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + eax*4]
call fcn.005271f0
mov ecx, eax
mov edx, dword [esp + 0x5c]
mov eax, 0x100
or word [esi + 2], ax
mov dword [esi + 0x14], ecx
mov eax, dword [esp + 0x2c]
mov dword [ebx], ecx
add ebx, 4
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov al, byte [edi + eax + 0xc]
add edi, 0x14
mov byte [edx + ecx], al
inc edx
mov ecx, 0x100
mov dword [esp + 0x5c], edx
cmp edx, dword [esp + 0x24]
jl 0x508ef0
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x58]
jmp 0x508d63
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
lea ecx, [eax + 1]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
cmp ecx, eax
jg 0x509010
xor edx, edx
lea ecx, [esi + 0x70]
nop dword [eax]
mov esi, dword [ecx]
mov edi, dword [esp + 0x58]
cmp esi, dword [esp + 0x2c]
jl 0x508fef
mov ebx, dword [esp + 0x2c]
dec ebx
add eax, ebx
mov ebx, dword [esp + 0x44]
cmp esi, eax
jle 0x509008
mov eax, dword [esp + 0x64]
inc edx
add ecx, 0x18
cmp edx, 0xa
jl 0x508fd0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
add dword [edx + 0x3c], ecx
sub dword [edx + 0x38], ecx
jmp 0x50901f
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x48]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x2c], edx
mov dword [esi + 0x48], eax
mov esi, dword [ebx + 0xc]
mov eax, esi
cmp dword [ebx + 0x10], esi
jg 0x509037
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509070
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x2c]
lea ecx, [esi + esi*4]
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x14]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov eax, dword [esp + 0x40]
lea ecx, [eax + 4]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x64], ecx
test edi, edi
je 0x5090e0
cmp byte [edi + 0x1e], 0
je 0x509095
mov dword [esp + 0x20], 0
jmp 0x5091cb
cmp byte [edi + 0xe2], 0
je 0x5090e0
movzx eax, word [edi + 0xe0]
cmp ecx, eax
jg 0x5090e0
mov esi, dword [edi + 0xec]
mov dword [esp + 0x5c], esi
test esi, esi
je 0x5090e0
mov eax, dword [esi]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x5090da
mov dword [edi + 0xe8], eax
mov dword [esp + 0x20], esi
jmp 0x50910b
push ecx
call fcn.00547470
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x5090f9
test edi, edi
je 0x5090f9
mov byte [edi + 0x1e], 1
mov dword [esp + 0x5c], eax
mov esi, eax
test eax, eax
je 0x5091c7
mov ecx, dword [esp + 0x64]
push ecx
push 0
push esi
call fcn.004359a0
mov ecx, dword [esp + 0x4c]
add esp, 0xc
mov word [esi + 6], cx
lea eax, [ecx + 3]
lea eax, [esi + eax*4]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x49]
mov byte [esi + 4], al
xor esi, esi
test ecx, ecx
jle 0x5091cb
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x50], esi
lea ecx, [edi + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], ecx
nop dword [eax]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x509180
push esi
mov ecx, ebx
call fcn.0050b7f0
mov ecx, dword [esp + 0x4c]
add esp, 4
test eax, eax
jne 0x5091a1
jmp 0x509182
xor eax, eax
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
cmp esi, dword [edx]
jge 0x5091a1
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov eax, dword [esp + 0x50]
mov edx, dword [edx + eax]
call fcn.005271f0
mov ecx, dword [esp + 0x48]
add dword [esp + 0x50], 0x14
mov dword [ecx], eax
add ecx, 4
mov eax, dword [edi + 8]
mov dword [esp + 0x48], ecx
mov byte [esi + eax], 0
inc esi
cmp esi, dword [esp + 0x40]
jl 0x509160
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x58]
jmp 0x5091cb
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, eax
push str.ORDER
mov dword [eax + 0x1c], 0
mov dword [ecx + 0x24], 0
mov ecx, esi
push dword [eax + 0x18]
call fcn.00527980
mov eax, dword [esp + 0x30]
add esp, 8
cmp dword [eax + 0x1c], 0
jne 0x509217
push str.ORDER
push dword [eax + 0x18]
mov edx, eax
mov ecx, esi
call fcn.00527980
add esp, 8
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x30], 0
jne 0x5093f3
mov ecx, esi
call fcn.00523170
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x28], 0
je 0x5093e9
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x48]
inc eax
mov dword [esp + 0x48], ecx
mov dword [ecx], eax
mov dword [edx + 0x30], eax
mov esi, dword [esi + 0xc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], esi
test esi, esi
jne 0x50927b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
call fcn.005340c0
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], esi
mov dword [ecx + 0xc], esi
jmp 0x50927f
mov ecx, dword [esp + 0x14]
test esi, esi
je 0x5093e5
mov edx, dword [edx + 0x28]
push eax
call fcn.00521d50
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], ecx
cmp ecx, eax
je 0x5092d5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x48], edx
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x5092d5
push eax
push dword [esp + 0x68]
mov edx, 0xf
call fcn.00533d20
mov edx, dword [esp + 0x1c]
add esp, 8
mov eax, dword [esp + 0x34]
add edx, 0x48
mov dword [esp + 0x48], edx
push eax
mov edx, 0x15
mov ecx, esi
call fcn.00533d90
add esp, 4
mov edx, 0x72
mov ecx, esi
push dword [esp + 0x3c]
push dword [esp + 0x38]
call fcn.00533d20
mov edx, dword [esp + 0x20]
add esp, 8
cmp dword [edx + 0x2c], 0
je 0x5093e5
mov eax, dword [esp + 0x48]
inc dword [eax]
mov ecx, dword [eax]
mov dword [edx + 0x34], ecx
inc dword [eax]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x48], ecx
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00521c80
add esp, 4
mov edx, 0x15
mov ecx, esi
push dword [esp + 0x48]
call fcn.00533d90
add esp, 4
mov edx, 0x70
mov ecx, esi
push dword [esp + 0x48]
call fcn.00533d90
add esp, 4
mov dword [esp + 0x64], eax
mov edx, 7
mov ecx, esi
push dword [esp + 0x48]
push 0
call fcn.00533d20
mov edx, dword [esi + 0xc]
add esp, 8
mov eax, dword [esp + 0x64]
cmp edx, eax
jle 0x50937f
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov eax, dword [esp + 0x48]
mov edx, 0x56
mov ecx, dword [esp + 0x44]
lea esi, [eax + 1]
push esi
push eax
push dword [esp + 0x3c]
call fcn.00533e70
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov edx, 0x70
push dword [esp + 0x34]
call fcn.00533d90
add esp, 4
mov dword [esp + 0x64], eax
mov edx, 7
push esi
mov esi, dword [esp + 0x48]
mov ecx, esi
push 0xffffffffffffffff
call fcn.00533d20
mov edx, dword [esi + 0xc]
add esp, 8
mov eax, dword [esp + 0x64]
cmp edx, eax
jle 0x5093e1
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp dword [edx + 0x30], 0
je 0x509506
cmp byte [esp + 0x13], 0x70
jne 0x509506
mov eax, dword [esi + 0x48]
inc eax
mov dword [esp + 0x44], eax
inc eax
mov dword [esp + 0x30], eax
mov dword [esi + 0x48], eax
mov eax, dword [edx + 0x34]
test eax, eax
je 0x50941e
lea ecx, [eax + 1]
mov dword [esp + 0x5c], ecx
jmp 0x509425
mov eax, dword [edx + 0x30]
mov dword [esp + 0x5c], eax
mov esi, dword [ebx + 0xc]
mov eax, esi
cmp dword [ebx + 0x10], esi
jg 0x50943d
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509476
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x5c]
lea ecx, [esi + esi*4]
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509489
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x5094c1
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x28]
test esi, esi
je 0x509521
mov edx, esi
mov ecx, edi
call fcn.00526370
cmp word [esi + 2], 0
jl 0x509521
test edi, edi
je 0x509518
cmp esi, dword [edi + 0xf0]
jb 0x509518
cmp esi, dword [edi + 0xf4]
jae 0x509518
mov eax, dword [edi + 0xec]
mov dword [esi], eax
dec dword [edi + 0xe4]
mov dword [edi + 0xec], esi
jmp 0x509521
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], 0
jmp 0x5094c5
push esi
call fcn.00547110
add esp, 4
mov esi, dword [esp + 0x18]
mov dword [esi + 0x28], 0
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x509576
mov edx, esi
mov ecx, edi
call fcn.00526370
cmp word [esi + 2], 0
jl 0x509576
test edi, edi
je 0x50956d
cmp esi, dword [edi + 0xf0]
jb 0x50956d
cmp esi, dword [edi + 0xf4]
jae 0x50956d
mov eax, dword [edi + 0xec]
mov dword [esi], eax
dec dword [edi + 0xe4]
mov dword [edi + 0xec], esi
jmp 0x509576
push esi
call fcn.00547110
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov word [esp + 0x80], 0xa
mov dword [esp + 0x88], 0
mov dword [eax + 0x2c], 0
mov ecx, dword [esi + 0x48]
inc ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], ecx
mov word [esp + 0x70], 0xa
mov dword [esp + 0x78], 0
lea eax, [ecx + 1]
mov dword [esp + 0x7c], 0
lea edx, [eax + 1]
mov dword [esp + 0x40], eax
lea eax, [edx + 1]
mov dword [esp + 0x74], edx
mov dword [esp + 0x34], eax
add eax, 2
mov dword [esi + 0x48], eax
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x5c], eax
mov eax, edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x64], edi
cmp dword [ebx + 0x10], edi
jg 0x509614
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x509611
mov dword [esp + 0x64], 1
jmp 0x50964d
mov eax, dword [ebx + 0xc]
inc eax
lea ecx, [edi + edi*4]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x14]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov ecx, dword [esp + 0x28]
mov edx, ecx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x30], eax
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.005054a0
mov esi, dword [ebx + 0xc]
add esp, 4
cmp dword [ebx + 0x10], esi
jg 0x509686
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x5096be
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x5096d1
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509709
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov ecx, dword [esp + 0x18]
mov edx, ecx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov edi, dword [ecx + 0x30]
mov esi, dword [ecx + 0x34]
mov dword [ecx + 0x30], eax
lea eax, [esp + 0x70]
mov dword [ecx + 0x34], 0
mov ecx, dword [esp + 0x14]
push eax
call fcn.005054a0
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], esi
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509758
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509790
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x5097a3
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x5097db
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x50]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
push dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff0
push dword [esp + 0x28]
lea eax, [esi + 1]
push dword [esp + 0x38]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x98]
push eax
call fcn.0050a430
mov edi, eax
add esp, 0x1c
mov al, byte [esp + 0x13]
mov dword [esp + 0x44], edi
cmp al, 0x70
je 0x50981e
cmp al, 0x6f
jne 0x509850
push dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x74]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffef
push dword [esp + 0x28]
push dword [esp + 0x38]
push dword [esp + 0x6c]
push dword [ebp + 8]
push eax
call fcn.0050a430
mov dword [esp + 0x7c], eax
add esp, 0x1c
mov al, byte [esp + 0x13]
cmp al, 0x71
je 0x5099bf
cmp al, 0x72
je 0x5099bf
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x30], edi
cmp dword [ebx + 0x10], edi
jg 0x509882
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x509882
mov edi, 1
mov dword [esp + 0x30], edi
jmp 0x5098b6
mov eax, dword [ebx + 0x14]
lea ecx, [edi + edi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x5098c9
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509901
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509914
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x50994c
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x50]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x50995f
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509993
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edi, dword [esp + 0x44]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x44], edx
cmp dword [ebx + 0x10], edx
jg 0x509a35
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x509a31
mov dword [esp + 0x44], 1
jmp 0x509a6d
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x30], esi
cmp dword [ebx + 0x10], esi
jg 0x5099e1
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x5099e1
mov esi, 1
mov dword [esp + 0x30], esi
jmp 0x509a19
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
cmp byte [esp + 0x13], 0x72
jne 0x509997
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], esi
jmp 0x509b4b
mov edx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
lea ecx, [edx + edx*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509a80
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509ab5
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
inc edx
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509ac8
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509b00
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509b13
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509b4b
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x1c], esi
cmp dword [ebx + 0x10], esi
jg 0x509b6d
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x509b6d
mov esi, 1
mov dword [esp + 0x1c], esi
jmp 0x509ba6
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
inc edx
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], edi
jg 0x509bb9
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509bf1
mov eax, dword [ebx + 0x14]
lea ecx, [edi + edi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], edi
jg 0x509c04
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509c3c
mov eax, dword [ebx + 0x14]
lea ecx, [edi + edi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], edi
jg 0x509c4f
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509c87
mov eax, dword [ebx + 0x14]
lea ecx, [edi + edi*4]
inc dword [ebx + 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 [ebx + 0x6e], 0
mov al, byte [esp + 0x13]
cmp al, 0x70
jne 0x509c9d
mov edi, esi
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x20], esi
jmp 0x509db4
cmp al, 0x72
jne 0x509cb4
mov ecx, dword [ebx + 0xc]
mov edi, esi
inc esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
jmp 0x509dfc
mov edi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], edi
jg 0x509cce
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x509cce
mov edi, 1
jmp 0x509d06
mov eax, dword [ebx + 0x14]
lea ecx, [edi + edi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509d19
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509d51
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509d6e
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x509d6e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
jmp 0x509da6
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 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 [ebx + 0x6e], 0
cmp byte [esp + 0x13], 0x6f
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x20], esi
jne 0x509dfc
cmp dword [ebx + 0x10], esi
jg 0x509dc4
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509dfc
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509e0f
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509e47
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x50]
mov word [eax + ecx*4], 4
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509e5a
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509e92
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509ea5
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509edd
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 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 [ebx + 0x6e], 0
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x64]
cmp edx, eax
jle 0x509ef2
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509f05
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509f3d
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509f50
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509f88
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509f9b
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x509fd3
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x68]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x509fe6
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x50a01e
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x50a031
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x50a069
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x50a07c
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x50a0b4
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x50a0cd
mov eax, dword [esp + 0x54]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ebx + 0xc]
mov dword [ecx], eax
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x50a0e7
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x50a0e7
mov esi, 1
jmp 0x50a11f
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov word [eax + ecx*4], 0x17
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx]
test edx, edx
je 0x50a165
cmp byte [ecx + 0x1e], 0
jne 0x50a165
test esi, esi
jns 0x50a136
mov esi, dword [ebx + 0xc]
dec esi
lea eax, [esi + esi*4]
push dword [edx + eax*4 + 0x10]
lea esi, [edx + eax*4]
movsx edx, byte [esi + 1]
call fcn.00533770
mov eax, dword [esp + 0x50]
add esp, 4
test eax, eax
jne 0x50a15c
mov dword [esi + 0x10], eax
mov byte [esi + 1], al
jmp 0x50a1b0
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf1
jmp 0x50a1b0
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x50a1b0
test ecx, ecx
je 0x50a197
cmp edx, dword [ecx + 0xf0]
jb 0x50a197
cmp edx, dword [ecx + 0xf4]
jae 0x50a197
mov eax, dword [ecx + 0xec]
mov dword [edx], eax
dec dword [ecx + 0xe4]
mov dword [ecx + 0xec], edx
jmp 0x50a1a0
push edx
call fcn.00547110
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
cmp dword [ebx + 0x10], esi
jg 0x50a1dd
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x50a1dd
mov esi, 1
jmp 0x50a215
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x18
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [ebx + 0x6e], 0
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx]
test edx, edx
je 0x50a25b
cmp byte [ecx + 0x1e], 0
jne 0x50a25b
test esi, esi
jns 0x50a22c
mov esi, dword [ebx + 0xc]
dec esi
lea eax, [esi + esi*4]
push dword [edx + eax*4 + 0x10]
lea esi, [edx + eax*4]
movsx edx, byte [esi + 1]
call fcn.00533770
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
jne 0x50a252
mov dword [esi + 0x10], eax
mov byte [esi + 1], al
jmp 0x50a2a6
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x50a2a6
mov edx, dword [esp + 0x38]
test edx, edx
je 0x50a2a6
test ecx, ecx
je 0x50a28d
cmp edx, dword [ecx + 0xf0]
jb 0x50a28d
cmp edx, dword [ecx + 0xf4]
jae 0x50a28d
mov eax, dword [ecx + 0xec]
mov dword [edx], eax
dec dword [ecx + 0xe4]
mov dword [ecx + 0xec], edx
jmp 0x50a296
push edx
call fcn.00547110
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
jg 0x50a2b9
mov ecx, ebx
call fcn.00533ee0
test eax, eax
jne 0x50a2ed
mov eax, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov word [eax + ecx*4], 0x19
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 [ebx + 0x6e], 0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
test ecx, ecx
je 0x50a309
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [esi + 0x38]
jle 0x50a309
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x50a322
mov eax, dword [esp + 0x3c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ebx + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 5
jne 0x50a34e
mov eax, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x50a340
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x50a337
push dword [ecx]
xor edx, edx
mov ecx, esi
call fcn.0050c450
add esp, 4
mov ebx, dword [esp + 0x18]
mov edi, dword [ebx + 0x1c]
test edi, edi
je 0x50a41d
mov esi, dword [esp + 0x58]
mov edx, edi
mov ecx, esi
call fcn.0050e080
test esi, esi
je 0x50a3a2
cmp edi, dword [esi + 0xf0]
jb 0x50a3a2
cmp edi, dword [esi + 0xf4]
jae 0x50a3a2
mov eax, dword [esi + 0xec]
mov dword [edi], eax
dec dword [esi + 0xe4]
mov eax, dword [esp + 0x28]
mov dword [esi + 0xec], edi
mov dword [ebx + 0x1c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x583ed0], 0
je 0x50a413
mov eax, dword [0x586800]
test eax, eax
je 0x50a3be
push eax
call dword [0x583f18]
add esp, 4
push edi
call dword [0x583ef4]
mov ecx, dword [0x586688]
neg eax
add ecx, eax
add esp, 4
mov dword [0x586688], ecx
cmp ecx, dword [0x5866ac]
jle 0x50a3e6
mov dword [0x5866ac], ecx
push edi
call dword [0x583eec]
mov eax, dword [0x586800]
add esp, 4
test eax, eax
je 0x50a41d
push eax
call dword [0x583f20]
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [ebx + 0x1c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x583eec]
add esp, 4
mov eax, dword [esp + 0x28]
pop edi
mov dword [ebx + 0x1c], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret