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

Disassembly:
sub esp, 0xd4
push ebx
mov ebx, dword [esp + 0xdc]
push esi
mov esi, dword [esp + 0xe4]
test esi, esi
push edi
mov edi, dword [ebx]
mov dword [esp + 0x20], 1
mov dword [esp + 0x38], edi
je 0x57f9cb
cmp byte [edi + 0x1e], 0
jne 0x57f9cb
cmp dword [ebx + 0x40], 0
jne 0x57f9cb
push 0
push 0
push 0
push 0x15
mov eax, ebx
call fcn.00546ad0
add esp, 0x10
test eax, eax
je 0x57f9da
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xd4
ret
push 0x2c
lea eax, [esp + 0x80]
push 0
push eax
call fcn.005b4520
mov ecx, dword [esp + 0xf8]
add esp, 0xc
cmp byte [ecx], 4
ja 0x57fa13
mov edx, dword [esi + 0x18]
push edx
call fcn.00538470
add esp, 4
and word [esi + 6], 0xfffe
mov dword [esi + 0x18], 0
push ebp
push 0
push esi
push ebx
call fcn.0057f8f0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
add esp, 0xc
cmp dword [ebx + 0x40], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], ecx
jne 0x581003
mov edx, edi
cmp byte [edx + 0x1e], 0
jne 0x581003
mov eax, esi
movzx ecx, byte [eax + 6]
shr ecx, 2
and ecx, 1
mov edi, ebx
mov dword [esp + 0x48], ecx
call fcn.00549210
mov ebp, eax
test ebp, ebp
je 0x581003
mov edi, esi
cmp dword [edi + 0x1c], 0
mov dword [esp + 0x2c], 0
mov esi, ebx
jne 0x57fba0
mov ecx, dword [esp + 0x54]
nop
movsx edx, word [ecx]
cmp dword [esp + 0x2c], edx
jge 0x57fba0
mov eax, dword [esp + 0x2c]
lea edx, [eax*8]
sub edx, eax
mov ebx, dword [ecx + edx*8 + 0x18]
test ebx, ebx
lea eax, [ecx + edx*8 + 8]
mov dword [esp + 0x60], eax
je 0x57fb91
cmp byte [eax + 0x14], 0
jne 0x57fb91
mov ecx, edi
call fcn.00538390
add dword [esi + 0x220], eax
movzx eax, byte [ebx + 6]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
shr eax, 2
and eax, 1
push eax
push ecx
push edx
push edi
push esi
mov dword [esp + 0x48], eax
call fcn.00551a20
add esp, 0x14
test eax, eax
je 0x57fb0a
cmp dword [esp + 0x34], 0
je 0x57fb00
or word [edi + 6], 4
mov dword [esp + 0x48], 1
mov dword [esp + 0x2c], 0xffffffff
jmp 0x57fb4e
mov edi, dword [esp + 0x60]
mov eax, dword [edi + 0x18]
mov dword [esp + 0xd8], eax
xor eax, eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
lea eax, [esp + 0xd4]
push eax
push ebx
push esi
mov byte [esp + 0xe0], 9
mov byte [esp + 0xe1], 0
call fcn.0057f980
add esp, 0xc
mov byte [edi + 0x14], 1
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x1e], 0
jne 0x581003
mov edi, dword [esp + 0xec]
mov ecx, edi
call fcn.00538390
mov esi, dword [esp + 0xe8]
sub dword [esi + 0x220], eax
mov edx, dword [esp + 0xf0]
cmp byte [edx], 4
mov ecx, dword [edi + 8]
mov dword [esp + 0x54], ecx
jbe 0x57fb91
mov eax, dword [edi + 0x18]
mov dword [esp + 0x40], eax
add dword [esp + 0x2c], 1
cmp dword [edi + 0x1c], 0
je 0x57fa80
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x1c], edx
movzx edx, byte [edi + 6]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi + 0x14]
and edx, 1
cmp dword [edi + 0x1c], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18], edx
je 0x57fc36
cmp dword [edi + 0x24], 0
jne 0x57fc18
xor ecx, ecx
xor edx, edx
mov eax, edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edi
mov ecx, eax
mov eax, dword [eax + 0x1c]
add edx, 1
test eax, eax
jne 0x57fbd8
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x57fc18
cmp edx, eax
jle 0x57fc18
push str.too_many_terms_in_compound_SELECT
mov edi, esi
call fcn.005442b0
add esp, 4
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xd4
ret
mov ecx, dword [esp + 0xf0]
push ecx
push esi
mov ecx, edi
call fcn.0056da20
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xd4
ret
mov edx, dword [eax]
mov eax, dword [esp + 0xf0]
push edx
mov edi, esi
call fcn.00548990
add esp, 4
test eax, eax
jne 0x581003
mov esi, dword [esp + 0xec]
mov al, byte [esi + 6]
and al, 5
cmp al, 1
jne 0x57fc89
mov ecx, dword [esi]
mov edx, dword [esp + 0x3c]
push 0
push ecx
push edx
call fcn.005403d0
add esp, 0xc
and word [esi + 6], 0xfffe
mov dword [esi + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x40]
mov eax, esi
mov edi, dword [eax + 0x10]
push ebx
call fcn.005389c0
add esp, 4
test eax, eax
jne 0x57fd8d
mov ecx, dword [esp + 0x3c]
test byte [ecx + 0xc], 0x20
jne 0x57fd8d
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0xe8]
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xf0]
cmp byte [eax], 9
jne 0x57fd24
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx]
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov edx, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x34], edx
jg 0x57fcf4
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x57fd24
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x34]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x29
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x62], cl
mov eax, ebp
call fcn.0053f780
mov edx, dword [esp + 0xec]
push eax
push edx
push esi
mov dword [esp + 0xb8], eax
call fcn.00549240
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x57fe6c
mov edi, dword [esi + 0x44]
mov ecx, dword [esp + 0xec]
lea eax, [edi + 1]
mov dword [esi + 0x44], eax
mov edx, dword [ecx]
push edx
push esi
mov dword [esp + 0x58], edi
call fcn.00566de0
mov ebx, dword [ebp + 0xc]
add esp, 8
cmp dword [ebp + 0x10], ebx
mov dword [esp + 0x28], eax
jg 0x57fddd
mov edi, ebp
call fcn.0053f5e0
test eax, eax
je 0x57fdd9
mov ebx, 1
jmp 0x57fe05
test ebx, ebx
je 0x57fcb5
mov esi, dword [esp + 0xe8]
push ebx
push esi
call fcn.00566de0
mov edx, dword [esi + 0x44]
mov dword [ebx + 8], edx
add dword [esi + 0x44], 1
mov ecx, dword [ebx]
mov edx, dword [ebx + 8]
push 0xfffffffffffffff0
push eax
add ecx, 2
push 0x29
xor eax, eax
mov edi, ebp
call fcn.005452a0
mov ecx, dword [esp + 0x100]
add esp, 0x14
mov dword [esp + 0x38], eax
mov dword [ecx + 0x40], eax
jmp 0x57fcc4
mov edi, dword [esp + 0x50]
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x29
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x62], cl
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov edi, dword [ebp]
mov eax, ebx
je 0x57fe5c
cmp byte [edi + 0x1e], 0
jne 0x57fe5c
test ebx, ebx
jge 0x57fe21
mov eax, dword [ebp + 0xc]
sub eax, 1
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea ebx, [ecx + edx*4]
mov ecx, dword [ebx + 0x10]
call fcn.0053f8d0
cmp dword [esp + 0x28], 0
mov dword [ebx + 0x10], 0
jne 0x57fe4f
mov dword [ebx + 0x10], 0
mov byte [ebx + 1], 0
jmp 0x57fe74
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xfa
jmp 0x57fe74
mov ecx, dword [esp + 0x28]
mov eax, 0xfffffff0
call fcn.0053f8d0
jmp 0x57fe74
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x48], 0
mov edi, dword [esp + 0x1c]
jne 0x57ff15
test edi, edi
jne 0x57ff19
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push edi
lea ecx, [esp + 0x44]
push ecx
push edx
push eax
push esi
call fcn.0057ac00
mov edi, eax
add esp, 0x14
test edi, edi
je 0x581003
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov esi, dword [esp + 0x40]
jl 0x57fed6
test esi, esi
jne 0x57fed6
lea eax, [esi + 1]
mov edx, ebp
call fcn.0053f9c0
mov ecx, dword [esp + 0xec]
mov dword [ecx + 0x40], 0xffffffff
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0xf0]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0xf4]
push ecx
mov ecx, dword [esp + 0xf4]
push 0xffffffffffffffff
push esi
push 0
push 0
push edx
push eax
push ecx
call fcn.00551360
push edi
call fcn.00542760
add esp, 0x2c
jmp 0x580f8a
test edi, edi
je 0x57ff5f
mov edx, dword [esp + 0xec]
mov ecx, dword [edx]
mov eax, dword [ecx]
test eax, eax
mov ecx, dword [ecx + 0xc]
jle 0x57ff3f
add ecx, 0x10
mov edi, edi
mov word [ecx], 0
sub eax, 1
add ecx, 0x14
test eax, eax
jg 0x57ff30
mov eax, dword [edi]
test eax, eax
mov ecx, dword [edi + 0xc]
jle 0x57ff5f
add ecx, 0x10
jmp 0x57ff50
mov word [ecx], 0
sub eax, 1
add ecx, 0x14
test eax, eax
jg 0x57ff50
mov eax, ebp
call fcn.0053f780
mov dword [esp + 0x70], eax
xor eax, eax
test edi, edi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x80]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], eax
mov dword [esp + 0xcc], ecx
je 0x57ffdd
mov edx, dword [edi]
add edx, 1
mov dword [esp + 0x8c], edx
jmp 0x57ffe8
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x6c]
lea ecx, [esp + 0xb0]
push ecx
mov dword [esp + 0x8c], eax
call fcn.0054e360
mov ebx, dword [esp + 0x44]
lea edx, [esp + 0xb4]
push edx
call fcn.0054e360
mov ecx, dword [esp + 0x68]
xor ebx, ebx
add esp, 8
cmp ecx, ebx
je 0x58002e
lea eax, [esp + 0xb0]
call fcn.0054e330
mov eax, dword [esp + 0x94]
xor edi, edi
cmp dword [esp + 0xa4], ebx
mov dword [esp + 0x9c], eax
jle 0x58007e
xor esi, esi
lea esp, [esp]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esi + ecx]
mov ebx, dword [edx + 0x10]
lea eax, [esp + 0xb0]
push eax
call fcn.0054e360
add edi, 1
add esp, 4
add esi, 0x10
cmp edi, dword [esp + 0xa4]
jl 0x580050
xor ebx, ebx
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x1e], bl
jne 0x581003
cmp dword [esp + 0x1c], ebx
je 0x580c70
mov esi, dword [esp + 0xe8]
mov eax, dword [esi + 0x44]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x84], eax
push edx
add eax, 1
push esi
mov dword [esi + 0x44], eax
call fcn.00566de0
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
add esp, 8
cmp dword [ebp + 0x10], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ecx
jg 0x5800fa
mov edi, ebp
call fcn.0053f5e0
test eax, eax
je 0x5800f6
mov eax, 1
mov dword [esp + 0x34], eax
jmp 0x58012d
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov byte [eax], 0x29
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
mov edi, dword [ebp]
je 0x580180
cmp byte [edi + 0x1e], bl
jne 0x580180
cmp eax, ebx
jge 0x580146
mov eax, dword [ebp + 0xc]
sub eax, 1
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x28], ecx
mov ecx, dword [ecx + 0x10]
call fcn.0053f8d0
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x10], ebx
mov eax, ecx
jne 0x580173
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x58018e
mov edx, dword [esp + 0x48]
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
jmp 0x58018e
mov ecx, dword [esp + 0x48]
mov eax, 0xfffffff0
call fcn.0053f8d0
mov eax, dword [esi + 0x48]
add eax, 1
lea edi, [eax + 1]
mov dword [esp + 0x78], eax
lea eax, [edi + 1]
mov dword [esp + 0x68], eax
mov dword [esi + 0x48], eax
mov eax, ebp
mov dword [esp + 0x7c], edi
call fcn.0053f780
add dword [esi + 0x48], 1
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x18], eax
mov eax, ebp
call fcn.0053f780
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + 1]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
add eax, edx
mov dword [esi + 0x48], eax
mov ecx, dword [ecx]
add ecx, eax
lea edx, [eax + 1]
mov dword [esi + 0x48], ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
jg 0x58020c
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580231
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x30]
add dword [ebp + 0xc], 1
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x30], eax
jg 0x58024c
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580275
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x78]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x30], eax
jg 0x580290
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x5802bd
mov eax, dword [esp + 0x30]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x38]
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
push ebx
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push esi
call fcn.0057ac00
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x581003
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x580301
mov eax, dword [esp + 0xec]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x4c], ebx
jmp 0x58066a
mov eax, dword [eax]
mov edx, dword [esp + 0x94]
cmp edx, ebx
lea edi, [eax + 1]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], edi
mov ecx, edi
jle 0x580347
mov eax, dword [esp + 0x90]
add eax, 0xc
cmp dword [eax], ecx
jl 0x58033b
add edi, 1
add ecx, 1
add eax, 0x18
sub edx, 1
jne 0x580331
mov dword [esp + 0x58], edi
mov eax, dword [esi + 0x38]
cmp edi, eax
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x5c], ecx
jg 0x580361
add ecx, edi
sub eax, edi
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], eax
jmp 0x580370
mov eax, dword [esi + 0x48]
lea edx, [eax + 1]
add eax, edi
mov dword [esp + 0x5c], edx
mov dword [esi + 0x48], eax
mov edx, esi
call fcn.00538970
mov eax, dword [esp + 0x5c]
push ebx
push eax
mov eax, dword [esp + 0x24]
push esi
call fcn.0054df00
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x90]
add esp, 0xc
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jg 0x5803b4
mov edi, ebp
call fcn.0053f5e0
test eax, eax
mov edi, dword [esp + 0x58]
jne 0x5803e7
mov eax, dword [esp + 0x24]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x5c]
add ecx, edx
mov byte [eax], 0x35
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
cmp dword [esp + 0x94], ebx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ebx
jle 0x5804d8
mov eax, dword [esp + 0x5c]
mov ecx, edx
xor edi, edi
lea esi, [eax + ecx]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x24], edi
jmp 0x580420
mov edx, dword [esp + 0x14]
cmp dword [edi + eax + 0xc], edx
jl 0x5804ae
mov ecx, dword [edi + eax + 4]
mov edx, dword [edi + eax + 8]
mov eax, dword [edi + eax]
push ecx
mov ecx, dword [esp + 0xec]
push edx
push eax
mov eax, esi
call fcn.0056f470
mov ecx, eax
add esp, 0xc
cmp esi, ecx
mov dword [esp + 0x44], ecx
je 0x58049f
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x10], eax
jg 0x58047a
mov edi, ebp
call fcn.0053f5e0
test eax, eax
mov edi, dword [esp + 0x24]
jne 0x58049f
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
add dword [ebp + 0xc], 1
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
mov byte [eax], 0xf
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
add dword [esp + 0x14], 1
mov eax, dword [esp + 0x90]
add esi, 1
mov ecx, dword [esp + 0x2c]
add ecx, 1
add edi, 0x18
cmp ecx, dword [esp + 0x94]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edi
jl 0x580420
mov esi, dword [esp + 0xe8]
mov edi, dword [esp + 0x58]
mov al, byte [esi + 0x15]
cmp al, bl
jne 0x5804e8
add dword [esi + 0x48], 1
mov ecx, dword [esi + 0x48]
jmp 0x5804f4
sub al, 1
movzx ecx, al
mov byte [esi + 0x15], al
mov ecx, dword [esi + ecx*4 + 0x18]
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jg 0x58051b
mov edi, ebp
call fcn.0053f5e0
test eax, eax
mov ecx, dword [esp + 0x14]
jne 0x580544
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x58]
add dword [ebp + 0xc], 1
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x5c]
mov byte [eax], 0x1e
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [esp + 0x84]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x10], eax
jg 0x58056e
mov edi, ebp
call fcn.0053f5e0
test eax, eax
mov ecx, dword [esp + 0x14]
jne 0x580597
mov eax, dword [esp + 0x10]
add dword [ebp + 0xc], 1
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x44]
mov byte [eax], 0x46
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
cmp ecx, ebx
je 0x5805cf
mov dl, byte [esi + 0x15]
cmp dl, 8
jae 0x5805cf
xor eax, eax
lea edi, [esi + 0x60]
jmp 0x5805b0
cmp dword [edi + 0x10], ecx
je 0x5806ea
add eax, 1
add edi, 0x18
cmp eax, 0xa
jl 0x5805b0
movzx eax, dl
mov dword [esi + eax*4 + 0x18], ecx
add byte [esi + 0x15], 1
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0xe8]
mov eax, dword [esp + 0x58]
push ecx
mov esi, edi
call fcn.005388d0
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, dword [edi + 0x38]
jle 0x5805fc
mov edx, dword [esp + 0x5c]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
mov eax, dword [esp + 0x30]
push eax
call fcn.00542760
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x88]
add esp, 4
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x10], ecx
jg 0x58062e
mov edi, ebp
call fcn.0053f5e0
test eax, eax
mov edi, dword [esp + 0xe8]
jne 0x58065b
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x10]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x70]
mov byte [eax], 0x40
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov edx, edi
mov byte [esp + 0x81], 1
call fcn.00538970
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x44], eax
call fcn.00538970
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], ebx
mov dword [esp + 0x14], ebx
jle 0x58073c
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x4c], ebx
je 0x5806f3
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov edx, dword [esp + 0x84]
mov dword [esp + 0x10], edx
jg 0x5806b5
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580720
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x10]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], ecx
add ecx, edx
mov byte [eax], 0x1c
mov byte [eax + 3], bl
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
jmp 0x580720
mov byte [edi + 8], 1
jmp 0x5805cf
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea esi, [ecx + eax]
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x80], 1
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ecx]
mov ecx, dword [esp + 0xe8]
call fcn.00540960
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x24], 0x14
add eax, 1
cmp eax, dword [edx]
mov dword [esp + 0x14], eax
jl 0x580691
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jg 0x580760
mov edi, ebp
call fcn.0053f5e0
test eax, eax
je 0x580760
mov esi, 1
jmp 0x580791
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x64]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov byte [eax], 0x18
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov edx, dword [esp + 0x48]
push edx
push ebp
mov ecx, 0xfffffffa
mov eax, esi
call fcn.0053fa10
mov esi, dword [ebp + 0xc]
add esp, 8
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x10], esi
jg 0x5807bd
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x5807e5
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
lea ecx, [esi + 1]
mov byte [eax], 0x19
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0xe8]
push eax
call fcn.00540720
mov esi, dword [ebp + 0xc]
add esp, 4
cmp dword [ebp + 0x10], esi
jg 0x580816
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580847
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x74]
xor ebx, ebx
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
jmp 0x580849
xor ebx, ebx
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58085c
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580889
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x7c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x70]
mov byte [eax], 0x71
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58089c
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x5808c9
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x18]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x38]
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jle 0x5808de
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov ecx, dword [esp + 0xe8]
lea eax, [esp + 0x80]
push eax
push ecx
call fcn.005687d0
mov esi, dword [ebp + 0xc]
add esp, 8
cmp dword [ebp + 0x10], esi
jg 0x580909
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580936
mov eax, dword [ebp + 0x14]
mov ecx, 1
add dword [ebp + 0xc], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x78]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
cmp dword [esp + 0x4c], ebx
je 0x580989
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov edx, dword [esp + 0x84]
mov dword [esp + 0x10], edx
jg 0x58095a
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x5809c8
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x10]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x44]
mov byte [eax], 0x43
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
jmp 0x5809c8
mov edx, dword [esp + 0x30]
push edx
call fcn.00542760
mov esi, dword [ebp + 0x14]
add esp, 4
cmp esi, ebx
je 0x5809c8
mov eax, dword [esp + 0x34]
mov edi, dword [ebp]
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.0053f8d0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esi], 0x88
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x5809db
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580a08
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x74]
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x580a1b
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580a44
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x70]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x44], esi
jg 0x580a5b
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580a88
mov edx, dword [ebp + 0x14]
mov ecx, 1
add dword [ebp + 0xc], ecx
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x7c]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x580a9b
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580ac4
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x68]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 3
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x580add
mov edx, dword [esp + 0x74]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0xc]
sub eax, ecx
mov dword [eax], edx
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x580af0
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580b1c
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x78]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
lea ecx, [esi + 2]
mov byte [eax], 0x71
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x10], eax
jg 0x580b37
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580b60
mov eax, dword [esp + 0x10]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x68]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
mov byte [eax], 3
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [esp + 0xe8]
lea edx, [esp + 0x80]
push edx
call fcn.00549980
mov eax, dword [esp + 0x64]
push 8
lea edi, [esi + 1]
mov esi, dword [esp + 0xf0]
push edi
push eax
push esi
call fcn.0056be90
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x58]
push edi
push edx
push eax
mov eax, dword [esp + 0x110]
mov edx, dword [eax]
push ecx
push ebx
push ebx
push edx
push eax
push esi
call fcn.00551360
mov esi, dword [ebp + 0xc]
add esp, 0x3c
cmp dword [ebp + 0x10], esi
jg 0x580bcd
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580bf6
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x68]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 3
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x580c0f
mov ecx, dword [esp + 0x38]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0xc]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [esp + 0xe8]
lea edx, [esp + 0x80]
push edx
push eax
call fcn.005685b0
mov esi, dword [ebp + 0xc]
add esp, 8
cmp dword [ebp + 0x10], esi
jg 0x580c40
mov edi, ebp
call fcn.0053f5e0
xor ebx, ebx
test eax, eax
jne 0x580f71
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x18]
mov byte [eax + 3], bl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [eax], 3
mov dword [eax + 4], ecx
mov byte [ebp + 0x62], bl
xor ebx, ebx
jmp 0x580f71
mov esi, dword [esp + 0xec]
lea edx, [esp + 0x80]
mov eax, esi
mov dword [esp + 0x50], ebx
call fcn.0053a070
mov edi, eax
cmp edi, ebx
je 0x580df6
mov edx, dword [esp + 0xe8]
mov esi, dword [edi + 0x40]
mov ecx, dword [edx]
call fcn.00539ae0
mov edx, eax
mov eax, dword [esp + 0xe8]
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x38], ecx
add ecx, 1
mov dword [eax + 0x44], ecx
mov ecx, dword [edi + 0x14]
push edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], ebx
xor esi, esi
mov dword [esp + 0x14], ecx
call fcn.0055fb10
mov edx, dword [edi]
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x38]
push edx
push ebx
push eax
mov eax, dword [esp + 0xf8]
push ecx
call fcn.00540ed0
mov eax, dword [edi + 0x10]
add esp, 0x14
cmp eax, ebx
je 0x580d31
cmp esi, ebx
je 0x580d00
mov edx, dword [eax + 4]
cmp edx, dword [esi + 4]
jge 0x580d02
mov esi, eax
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x580cf4
cmp esi, ebx
je 0x580d31
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jge 0x580d31
mov ecx, dword [esp + 0xe8]
mov edi, dword [esi + 0x14]
push esi
push ecx
call fcn.00564e00
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
jmp 0x580d39
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push edx
push edi
push eax
push 0x26
mov eax, ebp
call fcn.0053f660
add esp, 0x10
cmp esi, ebx
je 0x580d95
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
mov edi, dword [ebp]
je 0x580d89
cmp byte [edi + 0x1e], bl
jne 0x580d89
mov eax, dword [ebp + 0xc]
sub eax, 1
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.0053f8d0
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x580d95
mov ecx, esi
mov eax, 0xfffffff0
call fcn.0053f8d0
mov ecx, dword [esp + 0xa0]
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov edx, dword [ecx + 8]
mov dword [esp + 0x10], edx
jg 0x580db6
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580de3
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x38]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x10]
mov byte [eax], 0x1f
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov edx, dword [esp + 0x38]
push edx
push 0x2b
mov eax, ebp
call fcn.0053f710
jmp 0x580f1d
mov eax, esi
mov dword [esp + 0x18], ebx
call fcn.0053a010
cmp al, bl
mov byte [esp + 0x23], al
je 0x580e49
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x3c]
push ebx
push eax
push esi
call fcn.005403d0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], eax
je 0x580e49
cmp byte [esi + 0x1e], bl
jne 0x580e49
cmp byte [esp + 0x23], 1
mov edx, dword [eax + 0xc]
setne cl
mov byte [edx + 0xc], cl
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov byte [ecx], 0x98
mov edi, dword [esp + 0xe8]
lea edx, [esp + 0x80]
push edx
push edi
call fcn.005685b0
movzx ax, byte [esp + 0x2b]
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
push edi
call fcn.0057ac00
mov esi, eax
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x30], esi
jne 0x580e9d
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x3c]
push ecx
call fcn.00538470
add esp, 4
jmp 0x581003
lea edx, [esp + 0x80]
push edx
push edi
call fcn.005687d0
add esp, 8
cmp dword [esp + 0x18], ebx
jne 0x580f08
cmp byte [esp + 0x23], bl
je 0x580f08
mov eax, dword [esi + 0x14]
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x10], eax
jg 0x580ed4
mov edi, ebp
call fcn.0053f5e0
test eax, eax
jne 0x580efd
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x10]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov edi, dword [esp + 0xe8]
mov esi, dword [esp + 0x30]
push esi
call fcn.00542760
lea edx, [esp + 0x84]
push edx
mov eax, edi
call fcn.00549980
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0xf0]
add esp, 8
push 8
push esi
push eax
push edi
mov dword [esp + 0x50], ebx
call fcn.0056be90
mov ecx, dword [esp + 0x100]
mov eax, dword [esp + 0xfc]
mov edx, dword [eax]
push esi
push esi
push ecx
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push edx
push eax
push edi
call fcn.00551360
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x74]
push eax
call fcn.00538470
add esp, 0x3c
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x580f8a
mov ecx, dword [esp + 0x70]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0xc]
sub eax, edx
mov dword [eax], ecx
cmp dword [esp + 0x40], 0
je 0x580fb9
mov edx, dword [esp + 0xf0]
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov eax, dword [esp + 0xe8]
push edx
mov edx, dword [esp + 0xf0]
push ecx
push ebp
push edx
push eax
call fcn.005489c0
add esp, 0x14
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x580fd5
mov ecx, dword [esp + 0xac]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0xc]
sub eax, edx
mov dword [eax], ecx
mov edx, dword [esp + 0xf0]
cmp byte [edx], 5
mov dword [esp + 0x24], 0
jne 0x581003
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xe8]
push eax
push ecx
push edx
call fcn.005634e0
add esp, 0xc
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x3c]
push eax
push esi
call fcn.00531d40
mov ecx, dword [esp + 0xa8]
push ecx
push esi
call fcn.00531d40
mov eax, dword [esp + 0x34]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xd4
ret