Function at 0x49cb09
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.004054b1
xor eax, eax
push ebp
push 0x49cda6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x49cdbd
call fcn.0040dedd
test eax, eax
jne 0x49cb9b
mov edx, dword [ebp - 4]
mov eax, 0x49cdc9
call fcn.0040dedd
test eax, eax
jne 0x49cb9b
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x49cdd5
call fcn.0040530d
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405055
mov edx, dword [esi]
mov eax, 0x49cdbd
call fcn.0040dedd
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49cde9
call fcn.0040dedd
mov edi, eax
call fcn.0049fe25
test al, al
jne 0x49cc72
lea eax, [ebp - 8]
push eax
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, dword [esi]
mov edx, ebx
call fcn.00405521
lea eax, [ebp - 0x1014]
mov ecx, dword [ebp - 8]
mov edx, 0x49cdf5
call fcn.0040530d
mov eax, dword [ebp - 0x1014]
call fcn.004054c1
push eax
call sub.kernel32.dll_OutputDebugStringA
push 0x49ce01
mov eax, dword [ebp - 8]
call fcn.004054c1
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x49cc72
lea eax, [ebp - 0x101c]
call fcn.004a03a1
mov eax, dword [ebp - 0x101c]
mov dl, byte [eax]
lea eax, [ebp - 0x1018]
call fcn.004051e9
push dword [ebp - 0x1018]
push 0x49ce19
lea eax, [ebp - 0x1020]
push eax
mov eax, dword [ebp - 4]
call fcn.004052c1
mov ecx, eax
lea edx, [edi + 1]
mov eax, dword [ebp - 4]
call fcn.00405521
push dword [ebp - 0x1020]
mov eax, esi
mov edx, 3
call fcn.00405381
mov edx, dword [esi]
mov eax, 0x49cdbd
call fcn.0040dedd
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49cde9
call fcn.0040dedd
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x49cd66
cmp ebx, edi
jge 0x49cd66
lea eax, [ebp - 8]
push eax
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, dword [esi]
mov edx, ebx
call fcn.00405521
push 0x1001
lea eax, [ebp - 0x100d]
push eax
push 0x49ce31
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.00405521
push dword [ebp - 0x1028]
push 0x49ce31
lea eax, [ebp - 0x1024]
mov edx, 3
call fcn.00405381
mov eax, dword [ebp - 0x1024]
call fcn.004054c1
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov al, byte [0x49ce35]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1030]
lea edx, [ebp - 0x100d]
mov ecx, 0x1001
call fcn.00405271
mov ecx, dword [ebp - 0x1030]
mov eax, dword [esi]
mov edx, dword [ebp - 8]
call fcn.0040e681
mov edx, dword [ebp - 0x102c]
mov eax, esi
call fcn.00405055
mov edx, dword [esi]
mov eax, 0x49cdbd
call fcn.0040dedd
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49cde9
call fcn.0040dedd
mov edi, eax
inc dword [ebp - 0xc]
test ebx, ebx
je 0x49cd7b
cmp ebx, edi
jge 0x49cd7b
cmp dword [ebp - 0xc], 0x3e8
jl 0x49cc98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49cdad
lea eax, [ebp - 0x1030]
mov edx, 8
call fcn.00405025
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405025
ret