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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
mov eax, dword [edi + 0x38]
mov edx, dword [edi]
dec eax
mov ebx, dword [edi + 8]
mov dword [esp + 0x18], eax
dec eax
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], edx
mov dword [esp + 0x50], ebx
mov ebp, dword [eax + 0x30]
mov cl, byte [eax]
mov byte [esp + 0x13], cl
mov dword [esp + 0x44], ebp
mov esi, dword [ebp]
mov dword [esp + 0x28], esi
cmp cl, 0x87
je 0x58c704
cmp byte [edx + 0x57], 0
mov edi, 1
jne 0x58c6fd
lea ecx, [esi + esi*4]
shl ecx, 2
mov dword [esp + 0x48], ecx
nop word [eax + eax]
mov eax, dword [eax + 0x1c]
cmp edi, dword [eax]
jg 0x58c6fd
xor ecx, ecx
test esi, esi
jle 0x58c5e7
lea edx, [ebp + 0x18]
movzx eax, word [edx]
cmp eax, edi
je 0x58c5e3
inc ecx
add edx, 0x14
cmp ecx, esi
jl 0x58c5d4
mov edx, dword [esp + 0x14]
cmp ecx, esi
jne 0x58c689
push 0
push 0x35
push edx
call fcn.005a9460
mov esi, eax
add esp, 0xc
test esi, esi
je 0x58c6ed
push 0x34
push 0
push esi
call fcn.006213c0
or eax, 0xffffffff
mov byte [esi], 0x9b
mov word [esi + 0x22], ax
add esp, 0xc
lea eax, [esi + 0x34]
mov dword [esi + 8], eax
mov byte [eax], 0
mov dword [esi + 0x18], 1
or dword [esi + 4], 0x800
mov dword [esi + 8], edi
test ebp, ebp
jne 0x58c64f
mov eax, dword [esp + 0x94]
push esi
push dword [eax]
call fcn.005b0170
add esp, 8
jmp 0x58c66d
mov eax, dword [ebp]
lea edx, [eax + 1]
cmp dword [ebp + 4], edx
jge 0x58c69c
mov eax, dword [esp + 0x94]
push esi
push ebp
push dword [eax]
call fcn.005b00b0
add esp, 0xc
mov ecx, dword [esp + 0x98]
mov ebp, eax
mov dword [esp + 0x44], ebp
mov dword [ecx + 0x30], eax
test eax, eax
jne 0x58c6d2
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
inc edi
cmp byte [edx + 0x57], 0
jne 0x58c6fd
mov eax, dword [esp + 0x98]
jmp 0x58c5c0
movups xmm0, xmmword [0x689f20]
lea eax, [eax + eax*4]
mov dword [ebp], edx
lea ecx, [eax*4]
mov eax, dword [0x689f30]
movups xmmword [ecx + ebp + 8], xmm0
mov dword [ecx + ebp + 0x18], eax
mov eax, ebp
mov dword [ecx + ebp + 8], esi
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x44], eax
mov dword [ecx + 0x30], ebp
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
inc esi
mov dword [esp + 0x28], esi
mov word [eax + ecx + 0x18], di
add ecx, 0x14
mov dword [esp + 0x48], ecx
jmp 0x58c685
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x80
ret
mov edi, dword [esp + 0x94]
movzx eax, word [edx + 0x134]
lea ecx, [esi*4 + 4]
xor esi, esi
cdq
cmp esi, edx
jb 0x58c772
ja 0x58c71f
cmp ecx, eax
jbe 0x58c772
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x130], esi
jne 0x58c736
inc dword [eax + 0x144]
jmp 0x58c81d
cmp byte [eax + 0x57], 0
je 0x58c81d
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x98]
mov dword [esp + 0x48], 0
mov dl, byte [esp + 0x13]
cmp dl, 0x87
jne 0x58c882
mov dword [esp + 0x3c], 0
mov ecx, 1
jmp 0x58c9e6
mov eax, dword [esp + 0x14]
cmp ecx, 0x80
ja 0x58c7cd
mov edx, dword [eax + 0x158]
mov dword [esp + 0x20], edx
test edx, edx
je 0x58c7a7
mov ecx, dword [esp + 0x14]
mov esi, edx
mov eax, dword [edx]
mov dword [ecx + 0x158], eax
mov eax, ecx
inc dword [eax + 0x140]
jmp 0x58c838
mov edx, dword [eax + 0x154]
mov dword [esp + 0x20], edx
test edx, edx
je 0x58c7cd
mov ecx, dword [esp + 0x14]
mov esi, edx
mov eax, dword [edx]
mov dword [ecx + 0x154], eax
mov eax, ecx
inc dword [eax + 0x140]
jmp 0x58c838
mov edx, dword [eax + 0x150]
mov dword [esp + 0x20], edx
test edx, edx
je 0x58c7f3
mov ecx, dword [esp + 0x14]
mov esi, edx
mov eax, dword [edx]
mov dword [ecx + 0x150], eax
mov eax, ecx
inc dword [eax + 0x140]
jmp 0x58c838
mov edx, dword [eax + 0x14c]
mov dword [esp + 0x20], edx
test edx, edx
je 0x58c817
mov ecx, dword [esp + 0x14]
mov esi, edx
mov eax, dword [edx]
inc dword [ecx + 0x140]
mov dword [ecx + 0x14c], eax
jmp 0x58c838
inc dword [eax + 0x148]
push esi
push ecx
push eax
call fcn.00574d60
mov edx, eax
add esp, 0xc
mov dword [esp + 0x20], edx
mov esi, edx
test edx, edx
je 0x58c744
mov edi, dword [esp + 0x28]
mov ecx, 1
mov dword [edx], edi
cmp edi, ecx
jl 0x58c85f
lea edx, [ebp + 0x18]
nop word [eax + eax]
movzx eax, word [edx]
lea edx, [edx + 0x14]
dec eax
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jle 0x58c850
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
push 1
push esi
push edi
call fcn.0058d960
add esp, 0xc
mov dword [esp + 0x48], eax
jmp 0x58c753
mov eax, dword [esi + 0x1c]
mov ebp, dword [eax]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x54], ebp
lea edx, [eax + 1]
inc eax
add eax, ebp
mov dword [esp + 0x3c], edx
mov dword [edi + 0x2c], eax
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58c8b5
push 0
push edx
push 0
push 0x47
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58c8e4
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x47
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 [esp + 0x14]
lea esi, [ebp*4 + 1]
add esi, ebp
push 0
lea eax, [esi + 0x18]
push eax
push ecx
call fcn.005a9460
mov edi, eax
add esp, 0xc
test edi, edi
je 0x58c943
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0x18]
lea eax, [eax + ebp*4]
mov dword [edi + 0x10], eax
movzx eax, bp
mov word [edi + 6], ax
inc eax
mov word [edi + 8], ax
mov al, byte [ecx + 0x54]
push esi
mov byte [edi + 4], al
lea eax, [edi + 0x18]
push 0
push eax
mov dword [edi + 0xc], ecx
mov dword [edi], 1
call fcn.006213c0
add esp, 0xc
mov dword [esp + 0x2c], edi
jmp 0x58c959
push dword [esp + 0x14]
call fcn.005bd130
add esp, 4
mov dword [esp + 0x2c], eax
mov edi, eax
test eax, eax
je 0x58c9d8
xor esi, esi
test ebp, ebp
jle 0x58c9d8
mov ebx, dword [esp + 0x54]
lea eax, [edi + 0x14]
xor ebp, ebp
mov dword [esp + 0x40], eax
nop dword [eax]
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x58c995
push esi
push eax
push dword [esp + 0x9c]
call fcn.0058c4f0
add esp, 0xc
test eax, eax
jne 0x58c9b8
jmp 0x58c997
xor eax, eax
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx + 0x1c]
cmp esi, dword [ecx]
jge 0x58c9b8
push dword [ecx + ebp + 8]
push dword [esp + 0x98]
call fcn.005aeba0
add esp, 8
mov ecx, dword [esp + 0x40]
add ebp, 0x14
mov dword [ecx], eax
add ecx, 4
mov eax, dword [edi + 0x10]
mov dword [esp + 0x40], ecx
mov byte [esi + eax], 0
inc esi
cmp esi, ebx
jl 0x58c970
mov ebx, dword [esp + 0x50]
mov dl, byte [esp + 0x13]
mov ecx, 1
cmp dl, 0x86
jne 0x58ca2e
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x98]
test dword [eax + 0x50], 0x200000
jne 0x58ca35
cmp dword [ebp + 0x34], 0
mov eax, ebp
je 0x58ca35
cmp byte [eax], dl
jne 0x58ca10
mov eax, dword [eax + 0x34]
inc ecx
cmp dword [eax + 0x34], 0
jne 0x58ca02
cmp ecx, 3
jle 0x58ca35
lea eax, [ecx - 3]
mov edx, ebp
shr eax, 1
inc eax
nop dword [eax]
mov edx, dword [edx + 0x34]
sub eax, 1
jne 0x58ca20
mov dword [esp + 0x54], edx
jmp 0x58ca3b
mov ebp, dword [esp + 0x98]
mov edx, ebp
mov dword [esp + 0x54], ebp
mov esi, dword [edx + 0x34]
mov edi, dword [esp + 0x94]
push 0
push dword [esp + 0x48]
mov dword [edx + 0x34], 0
mov dword [esi + 0x38], 0
push dword [edi]
mov dword [esp + 0x4c], esi
call fcn.005b0460
push str.ORDER
mov dword [esi + 0x30], eax
push dword [ebp + 0x30]
push ebp
push edi
call fcn.005c6d70
push str.ORDER
push dword [esi + 0x30]
push esi
push edi
call fcn.005c6d70
push dword [esp + 0x44]
push ebp
push edi
call fcn.00572580
add esp, 0x38
cmp dword [ebp + 8], 0
je 0x58cb69
cmp byte [esp + 0x13], 0x87
jne 0x58cb69
mov esi, dword [edi + 0x2c]
mov eax, dword [esp + 0x94]
inc esi
lea edi, [esi + 1]
mov dword [eax + 0x2c], edi
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x44], edi
test edx, edx
je 0x58cac7
inc edx
jmp 0x58caca
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58cae3
push 0
push esi
push edx
push 0x50
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58cb15
mov ebp, dword [esp + 0x98]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58cb35
push 0
push edi
push esi
push 0x50
push ebx
call fcn.00580cd0
mov edi, dword [esp + 0xa8]
add esp, 0x14
jmp 0x58cb73
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x94]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x58cb73
mov dword [esp + 0x44], 0
xor esi, esi
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x58cb87
push eax
push dword [esp + 0x18]
call fcn.005af220
add esp, 8
mov dword [ebp + 0x3c], 0
mov eax, dword [edi + 0x2c]
mov byte [esp + 0x74], 0xd
mov dword [esp + 0x7c], 0
mov dword [esp + 0x88], 0
lea ecx, [eax + 1]
mov dword [esp + 0x80], 0
lea edx, [eax + 2]
mov dword [esp + 0x1c], ecx
add eax, 3
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
inc eax
mov dword [esp + 0x34], eax
mov dword [edi + 0x2c], eax
movzx eax, byte [ebp]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], 0
mov byte [esp + 0x58], 0xd
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
sub eax, 0x87
je 0x58cc33
sub eax, 1
je 0x58cc2c
sub eax, 1
je 0x58cc25
mov eax, str.UNION
jmp 0x58cc38
mov eax, str.INTERSECT
jmp 0x58cc38
mov eax, str.EXCEPT
jmp 0x58cc38
mov eax, str.UNION_ALL
push eax
push str.MERGE___s_
push 1
push edi
call fcn.005db940
mov edi, dword [ebx + 0x6c]
add esp, 0x10
lea edx, [edi + 1]
cmp dword [ebx + 0x70], edi
jg 0x58cc6a
push edx
push 0
push dword [esp + 0x24]
push 0xb
push ebx
call fcn.00580cd0
add esp, 0x14
mov edi, eax
jmp 0x58cc9d
mov eax, dword [ebx + 0x68]
lea ecx, [edi + edi*4]
mov ebp, dword [esp + 0x1c]
mov dword [ebx + 0x6c], edx
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x98]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x40]
push str.LEFT
push 1
mov dword [eax + 8], esi
mov esi, dword [esp + 0x9c]
push esi
call fcn.005db940
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x50]
push esi
call fcn.005c8530
mov ecx, dword [ebx + 0x6c]
add esp, 0x18
cmp dword [ebx + 0x70], ecx
jg 0x58ccea
push 0
push 0
push dword [esp + 0x24]
push 0x44
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58cd1d
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x44
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 eax, dword [ebx + 0xc]
mov byte [eax + 0x13], 0
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x57], 0
je 0x58cd40
mov eax, 0x6ebf90
jmp 0x58cd49
mov eax, dword [ebx + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov esi, dword [esp + 0x24]
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x4c], eax
lea edx, [eax + 1]
cmp dword [ebx + 0x70], eax
jg 0x58cd74
push edx
push 0
push esi
push 0xb
push ebx
call fcn.00580cd0
add esp, 0x14
mov dword [esp + 0x4c], eax
jmp 0x58cd9c
lea ecx, [eax + eax*4]
mov dword [ebx + 0x6c], edx
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x44]
push str.RIGHT
push 1
push dword [esp + 0x9c]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 0
call fcn.005db940
lea eax, [esp + 0x64]
push eax
push ebp
push dword [esp + 0xa8]
call fcn.005c8530
mov dword [ebp + 8], edi
add esp, 0x18
mov edi, dword [esp + 0x24]
mov dword [ebp + 0xc], esi
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58cdfc
push 0
push 0
push edi
push 0x44
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58ce2b
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x18]
mov eax, dword [ebx + 0xc]
push dword [esp + 0x30]
mov esi, dword [esp + 0xa4]
push dword [esp + 0x44]
mov byte [eax + 0x13], 0
mov eax, dword [ebx + 0xc]
push dword [esp + 0x3c]
push esi
mov dword [eax + 0x1c], 0
lea eax, [esp + 0x88]
push eax
push ebp
push dword [esp + 0xb0]
call fcn.0057edc0
mov dword [esp + 0x64], eax
add esp, 0x20
mov al, byte [esp + 0x13]
cmp al, 0x87
je 0x58ce7c
cmp al, 0x86
jne 0x58cea6
push dword [esp + 0x18]
lea eax, [esp + 0x5c]
push dword [esp + 0x30]
push dword [esp + 0x44]
push dword [esp + 0x40]
push esi
push eax
push ebp
push dword [esp + 0xb0]
call fcn.0057edc0
add esp, 0x20
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x58cebf
add dword [eax], 0xffffffff
jne 0x58cebf
push eax
push dword [eax + 0xc]
call fcn.005a9580
add esp, 8
mov al, byte [esp + 0x13]
cmp al, 0x88
je 0x58d051
cmp al, 0x89
je 0x58d051
mov esi, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], esi
jg 0x58cef4
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0xa
push ebx
call fcn.00580cd0
add esp, 0x14
mov esi, eax
jmp 0x58cf27
mov edx, dword [esp + 0x34]
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x3c], edx
cmp dword [ebx + 0x70], edx
jg 0x58cf4b
push 0
push dword [esp + 0x1c]
push edi
push 0xc
push ebx
call fcn.00580cd0
add esp, 0x14
mov dword [esp + 0x3c], eax
jmp 0x58cf7a
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58cf94
push 0
push esi
push 0
push 9
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58cfc3
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x40]
movzx ebp, word [ebp + 2]
movsx ecx, bp
movzx edi, word [eax + 2]
movsx edx, di
cmp bp, di
jl 0x58cfff
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x58cfe5
mov eax, ebp
jmp 0x58d025
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x58cff1
lea eax, [ebp + 1]
jmp 0x58d022
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, bp
jmp 0x58d022
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x58d00a
mov eax, edi
jmp 0x58d025
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x58d016
lea eax, [edi + 1]
jmp 0x58d022
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, di
movzx eax, ax
mov ecx, dword [esp + 0x98]
mov word [ecx + 2], ax
mov edi, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], edi
jg 0x58d07c
push 0
push dword [esp + 0x48]
push dword [esp + 0x38]
push 0xa
push ebx
call fcn.00580cd0
add esp, 0x14
mov edi, eax
jmp 0x58d0af
mov ecx, dword [esp + 0x18]
mov esi, ecx
mov dword [esp + 0x3c], ecx
cmp al, 0x89
jne 0x58d030
mov eax, dword [esp + 0x40]
mov edi, esi
movzx eax, word [eax + 2]
cmp word [ebp + 2], ax
jle 0x58d073
mov word [ebp + 2], ax
mov dword [esp + 0x3c], ecx
jmp 0x58d14a
mov edx, dword [esp + 0x30]
lea eax, [edi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58d0ce
push 0
push dword [esp + 0x1c]
push dword [esp + 0x24]
push 0xc
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d101
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58d11b
push 0
push edi
push 0
push 9
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d14a
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 9
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 ebp, dword [ebx + 0x6c]
mov dword [esp + 0x2c], ebp
cmp dword [ebx + 0x70], ebp
jg 0x58d173
push 0
push dword [esp + 0x48]
push dword [esp + 0x38]
push 0xa
push ebx
call fcn.00580cd0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x2c], ebp
jmp 0x58d1ac
mov edx, dword [esp + 0x30]
lea eax, [ebp + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ebp*4]
mov eax, dword [ebx + 0x68]
add ecx, ebp
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58d1c8
push 0
push esi
push dword [esp + 0x24]
push 0xc
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d1f7
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58d216
mov eax, dword [esp + 0x18]
push 0
dec eax
push eax
push 0
push 9
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d24e
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov ebp, dword [esp + 0x2c]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
dec edx
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 9
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 al, byte [esp + 0x13]
cmp al, 0x87
jne 0x58d262
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x30], ecx
jmp 0x58d32a
cmp al, 0x89
jne 0x58d276
mov eax, dword [ebx + 0x6c]
inc dword [esp + 0x2c]
mov dword [esp + 0x30], eax
jmp 0x58d379
mov ebp, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ebp
jg 0x58d294
push 0
push esi
push dword [esp + 0x24]
push 0xc
push ebx
call fcn.00580cd0
add esp, 0x14
mov ebp, eax
jmp 0x58d2c9
mov edx, dword [esp + 0x1c]
lea eax, [ebp + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ebp*4]
mov eax, dword [ebx + 0x68]
add ecx, ebp
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58d2e8
mov eax, dword [esp + 0x18]
push 0
dec eax
push eax
push 0
push 9
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d31c
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
dec edx
mov dword [eax + ecx*4], 9
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
cmp byte [esp + 0x13], 0x86
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x30], ecx
jne 0x58d379
cmp dword [ebx + 0x70], ecx
jg 0x58d346
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0xa
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d379
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
mov esi, dword [esp + 0x24]
cmp dword [ebx + 0x70], ecx
jg 0x58d396
push 0
push edi
push esi
push 0xc
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d3c1
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58d3e0
mov eax, dword [esp + 0x18]
push 0
dec eax
push eax
push 0
push 9
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d418
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x24]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
dec edx
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 9
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 [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x57], 0
je 0x58d42a
mov eax, 0x6ebf90
jmp 0x58d437
mov eax, dword [esp + 0x4c]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58d45a
mov edx, dword [esp + 0x3c]
push 0
push edx
push dword [esp + 0x24]
push 0xc
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d48d
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58d4a6
push 0
push edi
push esi
push 0xc
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d4d1
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
dec edx
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x58d4f0
push edx
push ebx
push ecx
call fcn.00597740
add esp, 0xc
jmp 0x58d4f9
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + edx*4], eax
mov edx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], edx
jg 0x58d516
push 0
push 0
push 0
push 0x59
push ebx
call fcn.00580cd0
add esp, 0x14
mov edx, eax
jmp 0x58d549
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x59
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 eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x58d565
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x58d59b
push ecx
push eax
call fcn.005a9580
add esp, 8
jmp 0x58d59b
test edx, edx
jns 0x58d56d
mov edx, dword [ebx + 0x6c]
dec edx
mov eax, dword [ebx + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x20]
je 0x58d590
push 0xfffffffffffffff2
push ecx
push eax
push ebx
call fcn.005edca0
add esp, 0x10
jmp 0x58d59b
test ecx, ecx
je 0x58d59b
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xf2
mov edx, dword [ebx + 0x6c]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x80]
cmp dword [ebx + 0x70], edx
jg 0x58d5c3
push dword [esp + 0x28]
push esi
push edi
push 0x5a
push ebx
call fcn.00580cd0
add esp, 0x14
mov edx, eax
jmp 0x58d5f2
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov ebx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x5a
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x58d61e
cmp dword [eax + 0x210], 0
jne 0x58d654
mov eax, dword [esp + 0x48]
test eax, eax
je 0x58d654
add dword [eax], 0xffffffff
jne 0x58d654
push eax
push dword [eax + 0xc]
call fcn.005a9580
add esp, 8
jmp 0x58d654
test edx, edx
jns 0x58d626
mov edx, dword [ebx + 0x6c]
dec edx
mov eax, dword [ebx + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x48]
je 0x58d649
push 0xfffffffffffffff8
push ecx
push eax
push ebx
call fcn.005edca0
add esp, 0x10
jmp 0x58d654
test ecx, ecx
je 0x58d654
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xf8
mov eax, dword [ebx + 0x6c]
test eax, eax
jle 0x58d66b
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [ebx + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x58d68b
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ebp
push edx
push 0xe
push ebx
call fcn.00580cd0
add esp, 0x14
jmp 0x58d6ba
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x58d6d8
push edx
push ebx
push ecx
call fcn.00597740
add esp, 0xc
jmp 0x58d6e1
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + edx*4], eax
mov ebp, dword [esp + 0x54]
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x58d8e2
mov eax, dword [0x6d3d38]
test eax, eax
je 0x58d80b
push 0x12c
call eax
mov ebx, dword [esp + 0x98]
add esp, 4
mov ecx, dword [ebx]
test eax, eax
je 0x58d814
push ecx
call fcn.005bd130
add esp, 4
mov edi, dword [ebx]
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x34]
test eax, eax
je 0x58d737
push eax
push edi
call fcn.00579390
add esp, 8
push dword [esi + 0x20]
push edi
call fcn.005cc230
mov eax, dword [esi + 0x24]
add esp, 8
test eax, eax
je 0x58d754
push eax
push edi
call fcn.005af220
add esp, 8
mov eax, dword [esi + 0x28]
test eax, eax
je 0x58d765
push eax
push edi
call fcn.00579390
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x58d776
push eax
push edi
call fcn.005af220
add esp, 8
mov eax, dword [esi + 0x30]
test eax, eax
je 0x58d787
push eax
push edi
call fcn.00579390
add esp, 8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x58d798
push eax
push edi
call fcn.005af220
add esp, 8
mov eax, dword [esi + 0x40]
test eax, eax
je 0x58d7a9
push eax
push edi
call fcn.005e97f0
add esp, 8
mov eax, dword [esi + 0x48]
test eax, eax
je 0x58d7ba
push eax
push edi
call fcn.005e8960
add esp, 8
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x58d7e8
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x58d7e1
mov eax, dword [ecx + 0x24]
mov dword [edx], eax
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x58d7da
mov eax, dword [ecx + 0x20]
mov dword [edx + 0x20], eax
mov dword [ecx + 0x20], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x58d7c1
cmp esi, dword [edi + 0x164]
jae 0x58d86e
cmp esi, dword [edi + 0x15c]
jb 0x58d856
mov eax, dword [edi + 0x158]
mov dword [esi], eax
mov dword [edi + 0x158], esi
jmp 0x58d8d8
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
push 0
push 0xc
test ecx, ecx
je 0x58d827
push ecx
call fcn.005a9460
add esp, 0xc
jmp 0x58d82f
call fcn.005bc3f0
add esp, 8
mov ecx, eax
test ecx, ecx
je 0x58d721
mov eax, dword [ebx + 0x8c]
mov dword [ecx], eax
mov dword [ebx + 0x8c], ecx
mov dword [ecx + 4], esi
mov dword [ecx + 8], fcn.005cb630
jmp 0x58d8e9
cmp esi, dword [edi + 0x160]
jb 0x58d86e
mov eax, dword [edi + 0x150]
mov dword [esi], eax
mov dword [edi + 0x150], esi
jmp 0x58d8d8
cmp dword [edi + 0x210], 0
je 0x58d883
push esi
push edi
call fcn.0058b300
add esp, 8
jmp 0x58d8d8
cmp dword [0x6d3c38], 0
je 0x58d8ce
mov eax, dword [0x6ebdc0]
test eax, eax
je 0x58d89f
push eax
call dword [0x6d3c88]
add esp, 4
push esi
call dword [0x6d3c64]
sub dword [0x6ebd58], eax
dec dword [0x6ebd7c]
push esi
call dword [0x6d3c5c]
mov eax, dword [0x6ebdc0]
add esp, 8
test eax, eax
je 0x58d8d8
push eax
call dword [0x6d3c90]
jmp 0x58d8d5
push esi
call dword [0x6d3c5c]
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x58d723
mov ebx, dword [esp + 0x94]
mov esi, dword [esp + 0x40]
mov dword [ebp + 0x34], esi
mov eax, dword [esi + 0x30]
mov dword [esi + 0x38], ebp
test eax, eax
je 0x58d907
push eax
push dword [esp + 0x18]
call fcn.00579390
add esp, 8
mov dword [esi + 0x30], 0
mov ecx, dword [ebx + 0xe8]
test ecx, ecx
jne 0x58d91c
xor eax, eax
jmp 0x58d93a
mov edx, dword [ebx + 8]
mov eax, dword [edx]
cmp byte [eax + 0x57], 0
je 0x58d92e
mov eax, 0x6ebf90
jmp 0x58d937
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [ebx + 0xe8], eax
xor eax, eax
cmp dword [ebx + 0x24], eax
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x80
ret