Function at 0x403c00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x15dc
call fcn.00412a90
mov eax, dword [ebp + 8]
mov dword [ebp - 0x15a8], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x15b0], edx
mov byte [ebp - 0x15a9], dl
mov eax, 0x4060d0
mov dword [ebp - 0x158c], eax
mov eax, 0x435c3c
mov dword [ebp - 0x1588], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1584], eax
mov eax, 0x4040de
mov dword [ebp - 0x1580], eax
mov dword [ebp - 0x157c], esp
lea eax, [ebp - 0x15a4]
mov dword [esp], eax
call fcn.00412b80
mov edx, dword [ebp - 0x15a8]
mov dword [edx + 0x14], 0
movzx eax, byte [ebp - 0x15b0]
mov byte [edx + 0x20], al
mov dword [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
mov edi, 0xffffffff
mov dword [ebp - 0x15a0], edi
call fcn.00403bc0
xor esi, esi
mov dword [esp + 0x18], esi
mov ebx, pe_nt_image_headers32
mov dword [esp + 0x14], ebx
mov ecx, 3
mov dword [esp + 0x10], ecx
xor edx, edx
mov dword [esp + 0xc], edx
mov edi, 1
mov dword [esp + 8], edi
xor edx, edx
cmp byte [ebp - 0x15a9], 0
setne dl
dec edx
and edx, 0xc0000000
sub edx, 0x40000000
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, 0xffffffff
mov dword [ebp - 0x15a0], esi
call eax
sub esp, 0x1c
mov edx, dword [ebp - 0x15a8]
mov dword [edx + 4], eax
inc eax
je 0x403ed3
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strdup
mov edx, dword [ebp - 0x15a8]
mov dword [edx], eax
xor edi, edi
mov dword [esp + 0x14], edi
xor esi, esi
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
cmp byte [ebp - 0x15a9], 0
setne al
lea eax, [eax + eax + 2]
mov dword [esp + 8], eax
xor ecx, ecx
mov dword [esp + 4], ecx
mov edx, dword [ebp - 0x15a8]
mov eax, dword [edx + 4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edx, 0xffffffff
mov dword [ebp - 0x15a0], edx
call eax
sub esp, 0x18
mov edx, dword [ebp - 0x15a8]
mov dword [edx + 8], eax
test eax, eax
je 0x403eb2
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor edi, edi
mov dword [esp + 8], edi
xor eax, eax
cmp byte [ebp - 0x15a9], 0
sete al
lea eax, [eax + eax + 2]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x15a8]
mov eax, dword [edx + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, 0xffffffff
mov dword [ebp - 0x15a0], esi
call eax
sub esp, 0x14
mov edx, dword [ebp - 0x15a8]
mov dword [edx + 0xc], eax
test eax, eax
je 0x403e7c
mov ebx, dword [eax + 0x3c]
add eax, ebx
mov edx, dword [ebp - 0x15a8]
mov dword [edx + 0x10], eax
cmp dword [eax], 0x4550
je 0x403e16
mov dword [edx + 0x1c], 4
lea eax, [ebp - 0x15a4]
mov dword [esp], eax
call fcn.00412bf0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xd8
mov ecx, 0xffffffff
mov dword [ebp - 0x15a0], ecx
call fcn.00408060
mov dword [ebp - 0x15bc], eax
mov edx, dword [ebp - 0x15a8]
mov eax, dword [edx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x15bc]
mov dword [esp], eax
mov edx, 1
mov dword [ebp - 0x15a0], edx
call fcn.004026a0
mov edx, dword [ebp - 0x15bc]
mov eax, dword [ebp - 0x15a8]
mov dword [eax + 0x14], edx
mov edx, eax
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x34]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], 0
jmp 0x403e00
mov eax, dword [edx + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov edx, dword [ebp - 0x15a8]
mov eax, dword [edx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x15a8]
mov dword [eax + 0x1c], 3
jmp 0x403e00
mov eax, dword [edx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x15a8]
mov dword [eax + 0x1c], 2
jmp 0x403e00
mov dword [esp], str.PATH
call sub.cygwin1.dll_getenv
mov dword [esp + 4], eax
lea eax, [ebp - 0x1578]
mov dword [esp], eax
mov ebx, 0xffffffff
mov dword [ebp - 0x15a0], ebx
call sub.cygwin1.dll_strcpy
mov ecx, 0x2f
mov dword [esp + 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strrchr
mov dword [ebp - 0x15b8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x15b8]
test edx, edx
je 0x403f2a
mov eax, dword [ebp - 0x15b8]
inc eax
mov dword [ebp - 0x15b8], eax
mov eax, 0x438791
mov dword [esp + 4], eax
lea eax, [ebp - 0x1578]
mov dword [esp], eax
call sub.cygwin1.dll_strtok
mov dword [ebp - 0x15b4], eax
test eax, eax
je 0x403ec1
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp - 0x15b4]
mov dword [esp + 4], edx
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov eax, 0xffffffff
mov dword [ebp - 0x15a0], eax
call sub.cygwin1.dll_strcpy
mov eax, 0x438793
mov dword [esp + 4], eax
lea edx, [ebp - 0x128]
mov dword [esp], edx
call sub.cygwin1.dll_strcat
mov eax, dword [ebp - 0x15b8]
mov dword [esp + 4], eax
lea edx, [ebp - 0x128]
mov dword [esp], edx
call sub.cygwin1.dll_strcat
mov eax, dword [0x43b050]
test eax, eax
jne 0x404090
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov ecx, 0xffffffff
mov dword [ebp - 0x15a0], ecx
call fcn.00403bc0
xor edx, edx
mov dword [esp + 0x18], edx
mov edi, pe_nt_image_headers32
mov dword [esp + 0x14], edi
mov esi, 3
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov ecx, 1
mov dword [esp + 8], ecx
xor edx, edx
cmp byte [ebp - 0x15a9], 0
setne dl
dec edx
and edx, 0xc0000000
sub edx, 0x40000000
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, 0xffffffff
mov dword [ebp - 0x15a0], edx
call eax
sub esp, 0x1c
mov edx, dword [ebp - 0x15a8]
mov dword [edx + 4], eax
inc eax
jne 0x404068
mov eax, 0x438791
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.cygwin1.dll_strtok
mov dword [ebp - 0x15b4], eax
test eax, eax
jne 0x403f60
jmp 0x403ec1
mov eax, dword [ebp - 0x15b4]
test eax, eax
je 0x403ec1
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov eax, 0xffffffff
mov dword [ebp - 0x15a0], eax
jmp 0x403d20
mov edi, str.ObjectFile
mov dword [esp + 4], edi
mov dword [esp], 0x43b6e0
call fcn.00434c70
mov esi, str.:_name:
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00434c70
lea edx, [ebp - 0x128]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00434c70
mov ebx, 0x4343c0
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00425c20
jmp 0x403fbf