Function at 0x49ca21
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x102c], ecx
mov dword [ebp - 0x1030], ecx
mov dword [ebp - 0x1024], ecx
mov dword [ebp - 0x1028], ecx
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053c9
xor eax, eax
push ebp
push 0x49ccbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x49ccd5
call fcn.0040ddf5
test eax, eax
jne 0x49cab3
mov edx, dword [ebp - 4]
mov eax, 0x49cce1
call fcn.0040ddf5
test eax, eax
jne 0x49cab3
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x49cced
call fcn.00405225
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404f6d
mov edx, dword [esi]
mov eax, 0x49ccd5
call fcn.0040ddf5
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49cd01
call fcn.0040ddf5
mov edi, eax
call fcn.0049fd3d
test al, al
jne 0x49cb8a
lea eax, [ebp - 8]
push eax
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, dword [esi]
mov edx, ebx
call fcn.00405439
lea eax, [ebp - 0x1014]
mov ecx, dword [ebp - 8]
mov edx, 0x49cd0d
call fcn.00405225
mov eax, dword [ebp - 0x1014]
call fcn.004053d9
push eax
call sub.kernel32.dll_OutputDebugStringA
push 0x49cd19
mov eax, dword [ebp - 8]
call fcn.004053d9
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x49cb8a
lea eax, [ebp - 0x101c]
call fcn.004a02b9
mov eax, dword [ebp - 0x101c]
mov dl, byte [eax]
lea eax, [ebp - 0x1018]
call fcn.00405101
push dword [ebp - 0x1018]
push 0x49cd31
lea eax, [ebp - 0x1020]
push eax
mov eax, dword [ebp - 4]
call fcn.004051d9
mov ecx, eax
lea edx, [edi + 1]
mov eax, dword [ebp - 4]
call fcn.00405439
push dword [ebp - 0x1020]
mov eax, esi
mov edx, 3
call fcn.00405299
mov edx, dword [esi]
mov eax, 0x49ccd5
call fcn.0040ddf5
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49cd01
call fcn.0040ddf5
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x49cc7e
cmp ebx, edi
jge 0x49cc7e
lea eax, [ebp - 8]
push eax
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, dword [esi]
mov edx, ebx
call fcn.00405439
push 0x1001
lea eax, [ebp - 0x100d]
push eax
push 0x49cd49
lea eax, [ebp - 0x1028]
push eax
mov ecx, edi
sub ecx, ebx
sub ecx, 2
lea edx, [ebx + 2]
mov eax, dword [esi]
call fcn.00405439
push dword [ebp - 0x1028]
push 0x49cd49
lea eax, [ebp - 0x1024]
mov edx, 3
call fcn.00405299
mov eax, dword [ebp - 0x1024]
call fcn.004053d9
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov al, byte [0x49cd4d]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1030]
lea edx, [ebp - 0x100d]
mov ecx, 0x1001
call fcn.00405189
mov ecx, dword [ebp - 0x1030]
mov eax, dword [esi]
mov edx, dword [ebp - 8]
call fcn.0040e599
mov edx, dword [ebp - 0x102c]
mov eax, esi
call fcn.00404f6d
mov edx, dword [esi]
mov eax, 0x49ccd5
call fcn.0040ddf5
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49cd01
call fcn.0040ddf5
mov edi, eax
inc dword [ebp - 0xc]
test ebx, ebx
je 0x49cc93
cmp ebx, edi
jge 0x49cc93
cmp dword [ebp - 0xc], 0x3e8
jl 0x49cbb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ccc5
lea eax, [ebp - 0x1030]
mov edx, 8
call fcn.00404f3d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f3d
ret