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

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x64]
push ebx
movzx ebx, byte [eax + 0x28]
push ebp
mov ebp, dword [eax]
push esi
mov esi, dword [ebp]
xor ecx, ecx
push edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
cmp ebx, 1
jne 0x590763
mov edi, ebx
jmp 0x590772
mov edi, ebx
sub edi, 2
neg edi
sbb edi, edi
and edi, 5
add edi, 5
lea ecx, [ebx + 8]
imul ecx, edi
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x34], edi
call fcn.00569810
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jne 0x59079c
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
xor eax, eax
mov ecx, edi
shl ecx, 5
lea edx, [ecx + esi]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
lea eax, [edi + edi]
add ecx, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], edx
test eax, eax
jle 0x5907e4
lea edi, [ebx*4]
add esi, 0x18
mov dword [esi], ecx
dec eax
add esi, 0x20
add ecx, edi
test eax, eax
jg 0x5907d8
mov eax, dword [ebp + 0x1c8]
cmp eax, 0x2e
jb 0x5907f4
mov eax, 0x2e
mov word [edx + 0x10], ax
mov eax, dword [esp + 0x74]
xor ebp, ebp
mov esi, 1
mov dword [esp + 0x40], ebp
cmp dword [eax + 8], ebp
je 0x590848
mov edi, dword [esp + 0x78]
cmp di, bp
je 0x590848
movsx eax, di
cdq
push edx
push eax
call fcn.0055e9b0
movzx eax, ax
add esp, 8
cmp ax, 0x21
jle 0x59083b
cwde
sub eax, 0x21
add eax, edi
movzx ecx, ax
mov dword [esp + 0x40], ecx
jmp 0x59084c
xor eax, eax
mov eax, edi
movzx ecx, ax
mov dword [esp + 0x40], ecx
jmp 0x59084c
mov byte [edx + 0x15], 1
cmp ebx, ebp
mov dword [esp + 0x28], ebp
jle 0x590d75
jmp 0x590860
mov dword [esp + 0x2c], 0
test esi, esi
jle 0x590c8a
mov edx, dword [esp + 0x30]
add edx, 0x14
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], esi
nop
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
test eax, eax
je 0x590c7a
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 1]
mov dl, byte [eax]
mov ebx, dword [eax - 0x14]
add eax, 0xffffffec
mov byte [esp + 0x12], cl
mov ecx, dword [eax + 4]
mov dword [esp + 0x6c], ecx
mov eax, ebx
mov byte [esp + 0x13], dl
mov edx, dword [esp + 0x18]
not eax
and eax, dword [edx]
not ecx
and ecx, dword [edx + 4]
or eax, ecx
jne 0x590c67
mov eax, edx
mov edi, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov ecx, edi
and ecx, dword [esp + 0x6c]
mov eax, ebp
and eax, ebx
or eax, ecx
jne 0x590c67
mov eax, dword [esp + 0x1c]
movzx eax, word [eax - 4]
mov ecx, edx
mov dx, word [ecx + 0x14]
movzx ecx, word [ecx + 0x12]
add dx, ax
movzx eax, dx
cmp cx, ax
jl 0x590946
movsx edx, ax
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x59091f
movzx eax, cx
mov dword [esp + 0x14], eax
jmp 0x59097d
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x590930
inc ecx
movzx ecx, cx
mov dword [esp + 0x14], ecx
jmp 0x59097d
sub eax, edx
movzx dx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add dx, cx
movzx eax, dx
mov dword [esp + 0x14], eax
jmp 0x59097d
movsx edx, cx
movsx ecx, ax
lea esi, [edx + 0x31]
cmp ecx, esi
jle 0x59095c
movzx ecx, ax
mov dword [esp + 0x14], ecx
jmp 0x59097d
lea esi, [edx + 0x1f]
cmp ecx, esi
jle 0x590969
inc eax
movzx edx, ax
jmp 0x590979
sub ecx, edx
movzx cx, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add cx, ax
movzx edx, cx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax - 2]
mov si, word [esp + 0x14]
cmp si, cx
jl 0x5909bd
movsx ecx, cx
movsx eax, si
lea edx, [ecx + 0x31]
cmp eax, edx
jg 0x5909f9
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x5909a9
inc dword [esp + 0x14]
jmp 0x5909f4
sub eax, ecx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add si, ax
mov word [esp + 0x14], si
jmp 0x5909f9
movsx edx, si
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x5909cf
movzx ecx, cx
jmp 0x5909f0
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x5909e0
inc ecx
movzx edx, cx
mov dword [esp + 0x14], edx
jmp 0x5909f4
sub eax, edx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx ecx, ax
mov dword [esp + 0x14], ecx
mov si, word [esp + 0x14]
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax - 4]
mov edx, dword [esp + 0x18]
mov dx, word [edx + 0x16]
or edi, dword [esp + 0x6c]
add dx, cx
movzx ecx, dx
or ebp, ebx
cmp byte [esp + 0x12], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], edi
jne 0x590afd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [esp + 0x7c]
movzx edx, word [eax + 0x22]
push ecx
mov ecx, dword [esp + 0x28]
push edx
add ecx, 0xffffffec
push ecx
mov ecx, dword [eax + 8]
push ecx
push eax
call fcn.00590190
add esp, 0x1c
sub eax, 0
je 0x590a76
sub eax, 1
jne 0x590b0b
mov byte [esp + 0x13], 1
mov byte [esp + 0x12], 1
jmp 0x590b0b
mov edx, dword [esp + 0x40]
cmp si, dx
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 1
jl 0x590ab7
movsx ecx, dx
movsx eax, si
lea edx, [ecx + 0x31]
cmp eax, edx
jg 0x590b0b
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x590aa8
inc dword [esp + 0x14]
mov si, word [esp + 0x14]
jmp 0x590b0b
sub eax, ecx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add si, ax
jmp 0x590b0b
movsx ecx, si
movsx eax, dx
lea esi, [ecx + 0x31]
cmp eax, esi
jle 0x590ad0
movzx ecx, dx
mov dword [esp + 0x14], ecx
mov si, cx
jmp 0x590b0b
lea esi, [ecx + 0x1f]
cmp eax, esi
jle 0x590ae4
inc edx
movzx edx, dx
mov dword [esp + 0x14], edx
mov si, dx
jmp 0x590b0b
sub eax, ecx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ax, dx
movzx ecx, ax
mov dword [esp + 0x14], ecx
mov si, cx
jmp 0x590b0b
mov edx, dword [eax - 0xc]
mov eax, dword [eax - 8]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
xor ecx, ecx
test edi, edi
jle 0x590b63
mov edx, dword [esp + 0x44]
lea ecx, [ecx]
mov eax, dword [ebp]
cmp eax, dword [esp + 0x60]
jne 0x590b55
mov eax, dword [ebp + 4]
cmp eax, dword [esp + 0x64]
jne 0x590b55
mov al, byte [esp + 0x12]
cmp byte [ebp + 0x15], al
jne 0x590b55
movzx eax, word [ebp + 0x12]
cmp ax, si
jg 0x590b4f
cmp word [ebp + 0x10], dx
jle 0x590b5f
cmp ax, si
jl 0x590b55
cmp word [ebp + 0x10], dx
jge 0x590b5f
inc ecx
add ebp, 0x20
cmp ecx, edi
jl 0x590b20
jmp 0x590b63
cmp ecx, edi
jl 0x590b93
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jl 0x590b83
cmp si, word [esp + 0x3c]
jge 0x590c67
mov ebp, dword [esp + 0x38]
shl ebp, 5
add ebp, dword [esp + 0x24]
jmp 0x590ba7
mov ebp, edi
inc edi
shl ebp, 5
add ebp, dword [esp + 0x24]
mov dword [esp + 0x2c], edi
jmp 0x590ba7
cmp word [ebp + 0x12], si
jg 0x590ba3
cmp word [ebp + 0x10], dx
jle 0x590c67
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx - 0x14]
mov eax, dword [esp + 0x18]
or edx, dword [eax + 8]
add ecx, 0xffffffec
mov ecx, dword [ecx + 4]
or ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x5c]
mov word [ebp + 0x12], si
mov esi, dword [esp + 0x28]
mov dword [ebp], edx
mov edx, dword [esp + 0x58]
mov dword [ebp + 4], ecx
mov cx, word [esp + 0x44]
mov dword [ebp + 0xc], eax
mov al, byte [esp + 0x13]
mov dword [ebp + 8], edx
mov dl, byte [esp + 0x12]
mov word [ebp + 0x10], cx
mov ecx, dword [esp + 0x1c]
add esi, esi
mov byte [ebp + 0x14], al
mov eax, dword [ebp + 0x18]
mov byte [ebp + 0x15], dl
mov edx, dword [ecx + 4]
add esi, esi
push esi
push edx
push eax
call fcn.005e13c0
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp edi, ebx
mov dword [esi + ecx], edx
jl 0x590c67
mov ecx, dword [esp + 0x24]
movzx edi, word [ecx + 0x12]
movzx esi, word [ecx + 0x10]
mov eax, 1
cmp ebx, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], edi
jle 0x590c67
add ecx, 0x32
lea esp, [esp]
movzx edx, word [ecx]
cmp dx, di
jg 0x590c50
jne 0x590c5b
cmp word [ecx - 2], si
jle 0x590c5b
movzx esi, word [ecx - 2]
movzx edi, dx
mov dword [esp + 0x38], eax
inc eax
add ecx, 0x20
cmp eax, ebx
jl 0x590c40
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x590893
add dword [esp + 0x1c], 0x20
sub dword [esp + 0x48], 1
jne 0x590880
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jl 0x590860
test esi, esi
jne 0x590d75
mov edi, dword [esp + 0x54]
push str.no_query_solution
call fcn.00573960
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
add esp, 4
test esi, esi
je 0x590d5f
cmp dword [esi + 0x200], 0
je 0x590d2e
cmp eax, dword [esi + 0x10c]
jb 0x590d0f
cmp eax, dword [esi + 0x110]
jae 0x590d0f
movzx eax, word [esi + 0xf0]
mov esi, dword [esi + 0x200]
add dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
push eax
call dword [0x69fd68]
mov esi, dword [esi + 0x200]
add esp, 4
add dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
cmp eax, dword [esi + 0x10c]
jb 0x590d5f
cmp eax, dword [esi + 0x110]
jae 0x590d5f
mov edx, dword [esi + 0x108]
mov dword [eax], edx
dec dword [esi + 0xf4]
pop edi
mov dword [esi + 0x108], eax
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
push eax
call fcn.0055d790
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
cmp esi, 1
mov ebx, dword [esp + 0x30]
jle 0x590d96
lea eax, [ebx + 0x20]
dec esi
mov cx, word [ebx + 0x12]
cmp cx, word [eax + 0x12]
jle 0x590d8e
mov ebx, eax
add eax, 0x20
sub esi, 1
jne 0x590d82
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x74]
xor ecx, ecx
test ebp, ebp
jle 0x590dd6
lea eax, [edi + 0x304]
lea ebx, [ebx]
mov edx, dword [ebx + 0x18]
mov esi, dword [edx + ecx*4]
mov dword [eax + 0x14], esi
mov dl, byte [esi + 0x10]
mov byte [eax], dl
mov esi, dword [edi + 4]
movzx edx, dl
lea edx, [edx + edx*8]
mov edx, dword [esi + edx*8 + 0x34]
mov dword [eax - 0x20], edx
inc ecx
add eax, 0x48
cmp ecx, ebp
jl 0x590db0
movzx eax, word [edi + 0x22]
test eax, 0x400
je 0x590e21
test eax, 0x200
jne 0x590e21
cmp byte [edi + 0x27], 0
jne 0x590e21
cmp word [esp + 0x78], 0
je 0x590e21
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx + ebp*4 - 4]
lea eax, [esp + 0x68]
push eax
mov eax, dword [edi + 0xc]
push edx
dec ebp
push ebp
push 0x200
push ebx
push eax
push edi
call fcn.00590190
add esp, 0x1c
cmp eax, 1
jne 0x590e21
mov byte [edi + 0x27], 2
cmp byte [ebx + 0x14], 0
je 0x590e48
mov ecx, 0x200
test word [edi + 0x22], cx
je 0x590e38
mov byte [edi + 0x27], 2
jmp 0x590e48
mov byte [edi + 0x24], 1
mov edx, dword [ebx + 8]
mov dword [edi + 0x18], edx
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x1c], eax
mov esi, dword [esp + 0x50]
mov cx, word [ebx + 0x10]
mov eax, dword [esp + 0x20]
mov word [edi + 0x20], cx
test esi, esi
je 0x590edc
cmp dword [esi + 0x200], 0
je 0x590eae
cmp eax, dword [esi + 0x10c]
jb 0x590e92
cmp eax, dword [esi + 0x110]
jae 0x590e92
movzx eax, word [esi + 0xf0]
mov esi, dword [esi + 0x200]
add dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
push eax
call dword [0x69fd68]
mov esi, dword [esi + 0x200]
add dword [esi], eax
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
cmp eax, dword [esi + 0x10c]
jb 0x590edc
cmp eax, dword [esi + 0x110]
jae 0x590edc
mov edx, dword [esi + 0x108]
mov dword [eax], edx
dec dword [esi + 0xf4]
pop edi
mov dword [esi + 0x108], eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
push eax
call fcn.0055d790
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret