Function at 0x10024d70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x138], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x134], eax
mov eax, dword [eax]
mov dword [ebp - 0x124], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x11c], 1
push edi
test eax, eax
je 0x10024dbf
cmp byte [eax], 0
mov dword [ebp - 0x130], 1
jne 0x10024dc9
mov dword [ebp - 0x130], 0
xor eax, eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x118], eax
xor bl, bl
xor al, al
mov byte [ebp - 0x112], al
mov byte [ebp - 0x111], al
test esi, esi
jne 0x10024e82
push str.HOME
call fcn.1004767d
add esp, 4
mov byte [ebp - 0x110], bl
test eax, eax
je 0x10024f77
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x110], bl
je 0x10024f77
lea eax, [ebp - 0x110]
push eax
call dword [0x1005f670]
mov edi, eax
add esp, 4
test edi, edi
je 0x10024f77
push str._netrc
push 0x10059520
push edi
push str._s_s_s
call fcn.1001e260
push edi
mov esi, eax
call dword [0x1005f678]
add esp, 0x14
test esi, esi
jne 0x10024e80
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov bl, 1
push 0x10056aa0
push esi
call fcn.10046f14
add esp, 8
mov dword [ebp - 0x128], eax
test bl, bl
je 0x10024eae
test esi, esi
je 0x10024eae
push esi
call dword [0x1005f678]
mov eax, dword [ebp - 0x128]
add esp, 4
test eax, eax
je 0x10025163
jmp 0x10024ec0
push eax
lea eax, [ebp - 0x110]
push pe_nt_image_headers32
push eax
call fcn.10046d11
add esp, 0xc
test eax, eax
je 0x10025155
lea eax, [ebp - 0x120]
mov edx, 0x1005952c
push eax
lea ecx, [ebp - 0x110]
call fcn.10032e60
mov edi, dword [ebp - 0x120]
add esp, 4
mov esi, eax
nop
test esi, esi
je 0x10025140
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x124]
mov ecx, dword [eax]
test ecx, ecx
je 0x10024f2e
cmp byte [ecx], 0
je 0x10024f2e
mov eax, dword [edx]
test eax, eax
je 0x10024f2e
cmp byte [eax], 0
jne 0x10025155
mov ebx, dword [ebp - 0x118]
mov eax, ebx
sub eax, 0
je 0x10025095
dec eax
je 0x10025063
dec eax
jne 0x100250b1
cmp byte [ebp - 0x112], al
je 0x10024fbb
cmp dword [ebp - 0x130], eax
je 0x10024f8d
mov edx, esi
call fcn.1002cbd0
mov dword [ebp - 0x12c], eax
xor al, al
mov byte [ebp - 0x112], al
jmp 0x100250b1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
push ecx
call dword [0x1005f678]
push esi
call dword [0x1005f670]
mov ecx, dword [ebp - 0x134]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x1002514b
xor al, al
mov byte [ebp - 0x112], al
jmp 0x100250b1
cmp byte [ebp - 0x111], 0
je 0x10025005
cmp dword [ebp - 0x12c], 0
jne 0x10024fd6
cmp dword [ebp - 0x130], 0
jne 0x10024ff8
push dword [edx]
call dword [0x1005f678]
push esi
call dword [0x1005f670]
mov esi, dword [ebp - 0x124]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x1002514b
xor al, al
mov byte [ebp - 0x111], al
jmp 0x100250b1
mov edx, esi
mov ecx, str.login
call fcn.1002cbd0
test eax, eax
je 0x10025022
mov al, 1
mov byte [ebp - 0x112], al
jmp 0x100250b1
mov edx, esi
mov ecx, str.password
call fcn.1002cbd0
test eax, eax
je 0x1002503c
mov al, 1
mov byte [ebp - 0x111], al
jmp 0x100250b1
mov edx, esi
mov ecx, str.machine
call fcn.1002cbd0
test eax, eax
je 0x100250b1
mov eax, 1
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x118], eax
jmp 0x100250b1
mov ecx, dword [ebp - 0x138]
mov edx, esi
call fcn.1002cbd0
test eax, eax
je 0x1002508b
mov eax, 2
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], eax
jmp 0x100250b1
xor eax, eax
mov dword [ebp - 0x118], eax
jmp 0x100250b1
mov edx, esi
mov ecx, str.machine
call fcn.1002cbd0
test eax, eax
mov eax, 1
cmovne ebx, eax
mov dword [ebp - 0x118], ebx
cmp byte [edi], 0
mov esi, edi
je 0x100250e2
jmp 0x100250c0
movsx eax, byte [esi]
push eax
push 0x1005952c
call fcn.10039a10
add esp, 8
test eax, eax
je 0x100250e2
inc esi
cmp byte [esi], 0
jne 0x100250c0
xor esi, esi
jmp 0x10024f00
cmp byte [esi], 0
je 0x100250db
mov al, byte [esi + 1]
lea edi, [esi + 1]
mov dword [ebp - 0x120], edi
test al, al
je 0x10024f00
jmp 0x10025100
movsx eax, al
push eax
push 0x1005952c
call fcn.10039a10
add esp, 8
test eax, eax
jne 0x10025128
mov al, byte [edi + 1]
inc edi
mov dword [ebp - 0x120], edi
test al, al
jne 0x10025100
jmp 0x10024f00
cmp byte [edi], 0
je 0x10024f00
mov byte [edi], 0
inc edi
mov dword [ebp - 0x120], edi
jmp 0x10024f00
mov eax, dword [ebp - 0x128]
jmp 0x10024ec0
mov dword [ebp - 0x11c], 0xffffffff
push dword [ebp - 0x128]
call fcn.10045443
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100370be
mov esp, ebp
pop ebp
ret