Function at 0x440ba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, 0x5c14db
push edi
mov edi, 0x5c14e5
push esi
mov esi, 0x5c14ec
push ebx
sub esp, 0xd2c
lea eax, [esp + 0xc40]
mov dword [esp], eax
call fcn.004388f0
call fcn.00429880
mov dword [esp + 0x2c], eax
lea edx, [esp + 0xc20]
mov eax, 0x5c14fa
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], edi
lea ecx, [esp + 0xc00]
mov dword [esp], ecx
mov dword [esp + 4], esi
call sub.msvcrt.dll_sprintf
call fcn.0043dce0
test eax, eax
je 0x440c16
cmp byte [eax], 0
jne 0x441032
lea edx, [esp + 0xc20]
mov dword [esp], edx
call sub.msvcrt.dll_strlen
lea ebx, [esp + eax + 0xc1f]
lea ecx, [esp + 0xc20]
cmp ebx, ecx
jbe 0x440c55
mov esi, esi
lea edi, [edi]
cmp byte [ebx], 0x2f
je 0x441060
dec ebx
lea edx, [esp + 0xc20]
cmp ebx, edx
ja 0x440c40
lea ecx, [esp + 0xc20]
cmp ebx, ecx
je 0x441357
mov dword [esp], 0x5c14fe
mov ecx, 0x104
lea esi, [esp + 0x9f0]
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
call sub.KERNEL32.dll_GetEnvironmentVariableW
sub esp, 0xc
test eax, eax
jne 0x440f58
mov dword [esp], 0x5c1516
xor edx, edx
mov eax, 0x104
mov byte [esp + 0x6e0], dl
lea edi, [esp + 0x6e0]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sub.KERNEL32.dll_GetEnvironmentVariableA
sub esp, 0xc
cmp byte [esp + 0x6e0], 0
jne 0x440f76
call fcn.00460670
mov ebx, eax
lea edi, [esp + 0x3b0]
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_GetModuleFileNameW
sub esp, 0xc
test eax, eax
jne 0x440f46
mov dword [esp], ebx
mov eax, 0x104
lea esi, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
lea ecx, [esp + 0xc20]
test ecx, ecx
je 0x440d64
mov dword [esp], esi
mov eax, 0x5c
mov ebp, 0x5c
mov dword [esp + 4], eax
call sub.msvcrt.dll_strrchr
mov byte [eax], 0
mov ebx, eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.msvcrt.dll_strrchr
test eax, eax
je 0x440d4b
mov ebx, eax
mov byte [ebx], 0x5c
lea eax, [esp + 0xc20]
mov dword [esp + 4], eax
lea eax, [ebx + 1]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
mov edi, 0xffffffff
call fcn.00460700
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00439b80
mov dword [esp + 8], eax
mov edx, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], edx
call fcn.0043b9d0
mov ebx, dword [esp + 0xd40]
test ebx, ebx
je 0x440ef8
mov ecx, dword [esp + 0xd40]
lea eax, [esp + 0x34]
xor ebp, ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
xor ebx, ebx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00433cb0
mov eax, dword [esp + 0x30]
shl eax, 2
mov dword [esp], eax
call fcn.0043ce60
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
cmp ebp, eax
mov dword [esp + 0x24], eax
jge 0x440ee0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x1c], ecx
cmp byte [ecx], 0x2e
je 0x440f11
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [ecx + ebp*4], eax
inc ebp
inc ebx
cmp ebx, dword [esp + 0x24]
jl 0x440e00
cmp ebp, 2
jg 0x4412d5
cmp ebp, 3
jg 0x441253
cmp ebp, 2
jg 0x4411d3
cmp ebp, 3
jg 0x4410d9
cmp ebp, 4
jle 0x440ee0
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc00]
lea eax, [esp + 0xc40]
mov esi, dword [edx + ebp*4 - 0x10]
mov dword [edx + ebp*4 - 0x10], ecx
mov dword [esp + 8], eax
lea eax, [ebp - 3]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00434b00
mov dword [esp + 0xd40], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc44]
mov dword [edx + ebp*4 - 0x10], esi
mov ecx, dword [esp + 0xd40]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00439b80
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0043b9d0
lea edx, [esp + 0xc40]
mov dword [esp], edx
call fcn.00438bf0
jmp 0x440ee0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0043d060
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call fcn.0043d060
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00432c80
add esp, 0xd2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cld
mov eax, 2
mov esi, ecx
mov edi, 0x5c1522
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x440e20
mov esi, dword [esp + 0x1c]
mov eax, 3
mov edi, 0x5c1524
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x441022
dec ebp
jmp 0x440e20
lea esi, [esp + 0x40]
mov eax, edi
mov edx, esi
call fcn.00440b50
jmp 0x440d13
lea edi, [esp + 0x6e0]
mov eax, esi
mov edx, edi
call fcn.00440b50
cmp byte [esp + 0x6e0], 0
je 0x440cc9
mov dword [esp], edi
mov eax, 0xffffffff
mov dword [esp + 4], eax
call fcn.00439b80
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0043b9d0
mov dword [esp], edi
call fcn.00460700
mov dword [esp], edi
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
call fcn.00433cb0
mov edx, dword [esp + 0x38]
test edx, edx
jle 0x440fe6
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + edx*4 - 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_lstrcmpiA
sub esp, 8
test eax, eax
jne 0x441084
mov dword [esp], edi
mov eax, 0xffffffff
mov dword [esp + 4], eax
call fcn.00439b80
mov esi, eax
mov dword [esp + 8], esi
mov edx, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], edx
call fcn.0043b9d0
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0043d060
jmp 0x440cc9
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [eax + ebp*4], edx
jmp 0x440e1f
mov dword [esp], eax
mov ebx, 0xffffffff
mov dword [esp + 4], ebx
call fcn.00439b80
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0043b9d0
jmp 0x440c16
lea eax, [esp + 0xc20]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea eax, [esp + eax + 0xc1f]
cmp eax, ebx
je 0x441368
inc ebx
jmp 0x440c55
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [eax + edx*4 - 4], ebx
lea ebx, [esp + 0x600]
mov dword [esp], ebx
call fcn.004388f0
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00434b00
mov dword [esp], eax
mov edx, dword [esp + 0x604]
mov dword [esp + 4], edx
call fcn.00439b80
mov dword [esp], ebx
mov esi, eax
call fcn.00438bf0
jmp 0x440ff9
mov eax, dword [esp + 0x28]
mov edx, 0x5c1527
lea ebx, [ebp - 2]
mov esi, dword [eax + ebp*4 - 0xc]
mov dword [eax + ebp*4 - 0xc], edx
lea edx, [esp + 0xc40]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00434b00
mov dword [esp + 0xd40], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc44]
mov dword [ecx + ebp*4 - 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd40]
mov dword [esp], eax
call fcn.00439b80
mov dword [esp + 8], eax
mov edx, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], edx
call fcn.0043b9d0
lea ecx, [esp + 0xc40]
mov dword [esp], ecx
call fcn.00438bf0
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xc00]
lea ecx, [esp + 0xc40]
mov esi, dword [eax + ebp*4 - 0xc]
mov dword [eax + ebp*4 - 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00434b00
mov dword [esp + 0xd40], eax
mov eax, dword [esp + 0x28]
mov dword [eax + ebp*4 - 0xc], esi
mov edx, dword [esp + 0xd40]
mov eax, dword [esp + 0xc44]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00439b80
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], ecx
call fcn.0043b9d0
lea eax, [esp + 0xc40]
mov dword [esp], eax
call fcn.00438bf0
jmp 0x440e4b
mov eax, dword [esp + 0x28]
mov ecx, 0x5c1527
lea edx, [esp + 0xc40]
mov esi, dword [eax + ebp*4 - 8]
mov dword [eax + ebp*4 - 8], ecx
mov dword [esp + 4], eax
lea eax, [ebp - 1]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.00434b00
mov dword [esp + 0xd40], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc44]
mov dword [ecx + ebp*4 - 8], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd40]
mov dword [esp], eax
call fcn.00439b80
mov dword [esp + 8], eax
mov edx, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], edx
call fcn.0043b9d0
lea ecx, [esp + 0xc40]
mov dword [esp], ecx
call fcn.00438bf0
jmp 0x440e42
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xc20]
lea edx, [esp + 0xc40]
mov esi, dword [ecx + ebp*4 - 0xc]
mov dword [ecx + ebp*4 - 0xc], eax
lea eax, [ebp - 2]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00434b00
mov dword [esp + 0xd40], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc44]
mov dword [ecx + ebp*4 - 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd40]
mov dword [esp], eax
call fcn.00439b80
mov dword [esp + 8], eax
mov edx, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], edx
call fcn.0043b9d0
lea ecx, [esp + 0xc40]
mov dword [esp], ecx
call fcn.00438bf0
jmp 0x440e39
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc20]
lea eax, [esp + 0xc40]
mov esi, dword [edx + ebp*4 - 8]
mov dword [edx + ebp*4 - 8], ecx
mov dword [esp + 8], eax
lea eax, [ebp - 1]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00434b00
mov dword [esp + 0xd40], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc44]
mov dword [edx + ebp*4 - 8], esi
mov ecx, dword [esp + 0xd40]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00439b80
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0043b9d0
lea edx, [esp + 0xc40]
mov dword [esp], edx
call fcn.00438bf0
jmp 0x440e30
mov dword [esp], 0x5c152f
call fcn.00441ce0
jmp 0x440c64
mov dword [esp], 0x5c1550
inc ebx
call fcn.00441ce0
jmp 0x440c55