Function at 0x49c4a4
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.00404e4c
xor eax, eax
push ebp
push 0x49c741
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x49c758
call fcn.0040d878
test eax, eax
jne 0x49c536
mov edx, dword [ebp - 4]
mov eax, 0x49c764
call fcn.0040d878
test eax, eax
jne 0x49c536
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x49c770
call fcn.00404ca8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004049f0
mov edx, dword [esi]
mov eax, 0x49c758
call fcn.0040d878
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49c784
call fcn.0040d878
mov edi, eax
call fcn.0049f7c0
test al, al
jne 0x49c60d
lea eax, [ebp - 8]
push eax
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, dword [esi]
mov edx, ebx
call fcn.00404ebc
lea eax, [ebp - 0x1014]
mov ecx, dword [ebp - 8]
mov edx, 0x49c790
call fcn.00404ca8
mov eax, dword [ebp - 0x1014]
call fcn.00404e5c
push eax
call sub.kernel32.dll_OutputDebugStringA
push 0x49c79c
mov eax, dword [ebp - 8]
call fcn.00404e5c
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x49c60d
lea eax, [ebp - 0x101c]
call fcn.0049fd3c
mov eax, dword [ebp - 0x101c]
mov dl, byte [eax]
lea eax, [ebp - 0x1018]
call fcn.00404b84
push dword [ebp - 0x1018]
push 0x49c7b4
lea eax, [ebp - 0x1020]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c5c
mov ecx, eax
lea edx, [edi + 1]
mov eax, dword [ebp - 4]
call fcn.00404ebc
push dword [ebp - 0x1020]
mov eax, esi
mov edx, 3
call fcn.00404d1c
mov edx, dword [esi]
mov eax, 0x49c758
call fcn.0040d878
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49c784
call fcn.0040d878
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x49c701
cmp ebx, edi
jge 0x49c701
lea eax, [ebp - 8]
push eax
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, dword [esi]
mov edx, ebx
call fcn.00404ebc
push 0x1001
lea eax, [ebp - 0x100d]
push eax
push 0x49c7cc
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.00404ebc
push dword [ebp - 0x1028]
push 0x49c7cc
lea eax, [ebp - 0x1024]
mov edx, 3
call fcn.00404d1c
mov eax, dword [ebp - 0x1024]
call fcn.00404e5c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov al, byte [0x49c7d0]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1030]
lea edx, [ebp - 0x100d]
mov ecx, 0x1001
call fcn.00404c0c
mov ecx, dword [ebp - 0x1030]
mov eax, dword [esi]
mov edx, dword [ebp - 8]
call fcn.0040e01c
mov edx, dword [ebp - 0x102c]
mov eax, esi
call fcn.004049f0
mov edx, dword [esi]
mov eax, 0x49c758
call fcn.0040d878
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49c784
call fcn.0040d878
mov edi, eax
inc dword [ebp - 0xc]
test ebx, ebx
je 0x49c716
cmp ebx, edi
jge 0x49c716
cmp dword [ebp - 0xc], 0x3e8
jl 0x49c633
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c748
lea eax, [ebp - 0x1030]
mov edx, 8
call fcn.004049c0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049c0
ret