Function at 0x566780
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x134], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x12c], eax
mov eax, dword [eax]
mov dword [ebp - 0x11c], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x118], 1
push edi
test eax, eax
je 0x5667cf
cmp byte [eax], 0
mov dword [ebp - 0x124], 1
jne 0x5667d9
mov dword [ebp - 0x124], 0
xor bl, bl
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x111], bl
mov byte [ebp - 0x112], bl
test esi, esi
jne 0x566888
push str.HOME
call fcn.005e25c9
add esp, 4
mov byte [ebp - 0x110], bl
test eax, eax
je 0x56698c
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x110], bl
je 0x56698c
lea eax, [ebp - 0x110]
push eax
call dword [0x65edec]
mov edi, eax
add esp, 4
test edi, edi
je 0x56698c
push str._netrc
push 0x62debc
push edi
push 0x63a7d4
call sym.PayClient.exe_curl_maprintf
push edi
mov esi, eax
call dword [0x65ede8]
add esp, 0x14
test esi, esi
jne 0x566886
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov bl, 1
push 0x63ab78
push esi
call fcn.005d384d
add esp, 8
mov dword [ebp - 0x120], eax
test bl, bl
je 0x5668b0
push esi
call dword [0x65ede8]
mov eax, dword [ebp - 0x120]
add esp, 4
test eax, eax
je 0x566bc7
mov edi, dword [ebp - 0x130]
xor ebx, ebx
push eax
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.005d91ea
add esp, 0xc
test eax, eax
je 0x566bb9
mov al, byte [ebp - 0x110]
lea esi, [ebp - 0x110]
test al, al
je 0x5669a2
movsx eax, al
push eax
push 0x63d954
call fcn.005cf910
add esp, 8
test eax, eax
je 0x5669a2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5668f1
xor esi, esi
test esi, esi
je 0x566ba4
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [eax]
test ecx, ecx
je 0x566942
cmp byte [ecx], 0
je 0x566942
mov eax, dword [edx]
test eax, eax
je 0x566942
cmp byte [eax], 0
jne 0x566bb9
mov eax, ebx
sub eax, 0
je 0x566af5
sub eax, 1
je 0x566ac4
sub eax, 1
jne 0x566b2b
cmp byte [ebp - 0x111], al
je 0x566a1e
cmp dword [ebp - 0x124], eax
je 0x5669f1
mov edx, esi
call fcn.00569f00
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x111], 0
jmp 0x566b2b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x566912
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
je 0x5669dd
movsx eax, al
push eax
push 0x63d954
call fcn.005cf910
add esp, 8
test eax, eax
jne 0x5669d4
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5669b5
jmp 0x5669dd
cmp byte [edi], 0
je 0x5669dd
mov byte [edi], 0
inc edi
cmp byte [esi], 0x23
mov eax, dword [ebp - 0x120]
je 0x5668c0
jmp 0x566914
push ecx
call dword [0x65ede8]
push esi
call dword [0x65edec]
mov ecx, dword [ebp - 0x12c]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x566baf
mov byte [ebp - 0x111], 0
jmp 0x566b2b
cmp byte [ebp - 0x112], 0
je 0x566a67
cmp dword [ebp - 0x128], 0
jne 0x566a39
cmp dword [ebp - 0x124], 0
jne 0x566a5b
push dword [edx]
call dword [0x65ede8]
push esi
call dword [0x65edec]
mov esi, dword [ebp - 0x11c]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x566baf
mov byte [ebp - 0x112], 0
jmp 0x566b2b
mov edx, esi
mov ecx, str.login
call fcn.00569f00
test eax, eax
je 0x566a83
mov byte [ebp - 0x111], 1
jmp 0x566b2b
mov edx, esi
mov ecx, str.password
call fcn.00569f00
test eax, eax
je 0x566a9f
mov byte [ebp - 0x112], 1
jmp 0x566b2b
mov edx, esi
mov ecx, str.machine
call fcn.00569f00
test eax, eax
je 0x566b2b
mov dword [ebp - 0x128], 0
mov ebx, 1
jmp 0x566b2b
mov ecx, dword [ebp - 0x134]
mov edx, esi
call fcn.00569f00
xor ecx, ecx
mov edx, eax
test edx, edx
cmove ecx, dword [ebp - 0x118]
neg edx
mov dword [ebp - 0x118], ecx
sbb edx, edx
and edx, 2
mov dword [ebp - 0x130], edx
mov ebx, edx
jmp 0x566b2b
mov edx, esi
mov ecx, str.machine
call fcn.00569f00
test eax, eax
je 0x566b0c
mov ebx, 1
jmp 0x566b2b
mov edx, esi
mov ecx, str.default
call fcn.00569f00
test eax, eax
je 0x566b2b
mov dword [ebp - 0x118], 0
mov ebx, 2
mov al, byte [edi]
mov esi, edi
test al, al
je 0x566b55
movsx eax, al
push eax
push 0x63d954
call fcn.005cf910
add esp, 8
test eax, eax
je 0x566b55
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x566b33
jmp 0x566912
cmp byte [esi], 0
je 0x566912
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
je 0x566914
nop dword [eax]
movsx eax, al
push eax
push 0x63d954
call fcn.005cf910
add esp, 8
test eax, eax
jne 0x566b92
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x566b70
jmp 0x566914
cmp byte [edi], 0
je 0x566914
mov byte [edi], 0
inc edi
jmp 0x566914
mov eax, dword [ebp - 0x120]
jmp 0x5668c0
mov dword [ebp - 0x118], 0xffffffff
push dword [ebp - 0x120]
call fcn.005d3921
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret