Function at 0x403c00
Capabilities:
Execute command
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [0x428024]
mov ebp, dword [esp + 0xa0]
test eax, eax
jne 0x403c3c
mov edx, dword [0x429790]
test edx, edx
jne 0x403c3c
mov ecx, dword [0x429b00]
test ecx, ecx
je 0x4042a7
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [0x428024], eax
mov ebx, dword [0x428030]
test ebx, ebx
je 0x403c53
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x429910]
test esi, esi
jne 0x40429d
mov eax, dword [0x429b00]
cmp eax, 0x7f
jle 0x404290
add eax, 0xffffff80
mov dword [esp], eax
call fcn.004146f0
test eax, eax
mov esi, eax
js 0x404247
inc dword [0x428018]
mov ebx, dword [0x429820]
mov ecx, dword [0x429900]
inc dword [0x428014]
mov edx, dword [0x429950]
add ebx, 4
mov dword [0x429820], ebx
lea edi, [ecx + edx*4]
cmp ebx, edi
je 0x404231
mov esi, dword [0x428028]
test esi, esi
je 0x403ce3
mov eax, dword [0x429790]
test eax, eax
je 0x403f97
mov edx, dword [0x4299d0]
test edx, edx
jne 0x403f1d
mov dword [esp], eax
call sub.msvcrt.dll_system
mov edi, dword [0x429910]
test edi, edi
jne 0x403d80
cmp ebp, 1
je 0x403e80
cmp ebp, 1
jb 0x403e0b
cmp ebp, 2
je 0x403d80
mov edx, dword [0x429b00]
test edx, edx
jns 0x403d76
mov dword [esp], 0x40135f
call sub.libintl_2.dll_libintl_gettext
mov esi, eax
call sub.msvcrt.dll__errno
mov ecx, dword [0x429820]
mov ebx, dword [ecx]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov edi, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], edi
call fcn.004196d0
mov ecx, dword [0x429910]
test ecx, ecx
jne 0x403cb6
cmp ebp, 1
jne 0x403cb6
mov edx, dword [0x429b30]
test edx, edx
je 0x403cb6
call fcn.00412f10
jmp 0x403cb6
mov eax, 1
jmp 0x403c48
mov edx, dword [0x429800]
test edx, edx
je 0x403db4
mov edx, dword [0x429820]
mov dword [esp + 8], 0x1b6
mov dword [esp + 4], 0x102
mov esi, dword [edx]
mov dword [esp], esi
call sub.msvcrt.dll__open
mov dword [0x429b00], eax
jmp 0x403d08
mov dword [esp + 4], 0x3a
mov ecx, dword [0x429820]
mov esi, dword [ecx]
mov dword [esp], esi
call sub.msvcrt.dll_strchr
mov dword [0x429730], eax
test eax, eax
je 0x403d8a
mov edx, dword [0x429820]
cmp eax, dword [edx]
jbe 0x403d90
cmp byte [eax - 1], 0x2f
je 0x403d90
mov dword [esp + 8], pe_nt_image_headers32
mov edi, dword [0x4298c0]
mov dword [esp + 4], 0x102
mov dword [esp + 0xc], edi
mov ebx, dword [edx]
mov dword [esp], ebx
call fcn.00414290
jmp 0x403daa
mov eax, dword [0x429800]
test eax, eax
je 0x403e2f
mov edx, dword [0x429820]
mov dword [esp + 8], 0x1b6
mov dword [esp + 4], 0
jmp 0x403da0
mov dword [esp + 4], 0x3a
mov esi, dword [0x429820]
mov ebx, dword [esi]
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
mov dword [0x429730], eax
test eax, eax
je 0x403e14
mov edx, dword [0x429820]
cmp eax, dword [edx]
jbe 0x403e1a
cmp byte [eax - 1], 0x2f
je 0x403e1a
mov dword [esp + 8], pe_nt_image_headers32
mov ecx, dword [0x4298c0]
mov dword [esp + 4], 0
mov dword [esp + 0xc], ecx
jmp 0x403dff
mov edx, dword [0x429b30]
test edx, edx
jne 0x403f00
mov eax, dword [0x429800]
test eax, eax
je 0x403eb0
mov edx, dword [0x429820]
mov dword [esp + 4], 0x1b6
mov ebx, dword [edx]
mov dword [esp], ebx
call sub.msvcrt.dll__creat
jmp 0x403daa
mov dword [esp + 4], 0x3a
mov ecx, dword [0x429820]
mov esi, dword [ecx]
mov dword [esp], esi
call sub.msvcrt.dll_strchr
mov dword [0x429730], eax
test eax, eax
je 0x403e93
mov edx, dword [0x429820]
cmp eax, dword [edx]
jbe 0x403e99
cmp byte [eax - 1], 0x2f
je 0x403e99
mov dword [esp + 8], pe_nt_image_headers32
mov edi, dword [0x4298c0]
mov dword [esp + 4], 0x101
mov dword [esp + 0xc], edi
jmp 0x403dff
mov dword [esp + 4], 1
mov ebx, dword [0x429820]
mov edi, dword [ebx]
mov dword [esp], edi
call fcn.00412bc0
jmp 0x403e8a
mov dword [esp + 4], 0x403a5f
mov dword [esp], edx
call sub.msvcrt.dll_fopen
test eax, eax
mov ebx, eax
je 0x403f62
mov dword [esp + 4], 0x403a61
mov edi, dword [0x428018]
mov dword [esp], eax
mov dword [esp + 8], edi
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
inc eax
je 0x403f62
mov eax, dword [0x429790]
jmp 0x403cdb
call sub.msvcrt.dll__errno
mov dword [esp + 8], 0x403a65
mov ecx, dword [0x4299d0]
mov dword [esp + 0xc], ecx
mov ebx, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], ebx
call fcn.004196d0
mov eax, 2
mov dword [0x429840], eax
jmp 0x403f58
lea edi, [esp + 0x30]
mov dword [esp], 7
mov edx, dword [sym.imp.msvcrt.dll__iob]
add edx, 0x40
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputc
mov dword [esp], 0x403a70
call sub.libintl_2.dll_libintl_gettext
mov ecx, dword [0x428018]
mov ebx, dword [0x429820]
mov esi, dword [ebx]
mov dword [esp + 4], eax
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
add ebx, 0x40
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x40
mov dword [esp], esi
call sub.msvcrt.dll_fflush
mov edx, dword [0x428024]
mov dword [esp + 4], 0x50
mov dword [esp], edi
mov dword [esp + 8], edx
call sub.msvcrt.dll_fgets
test eax, eax
je 0x404214
movzx eax, byte [esp + 0x30]
cmp al, 0xa
je 0x403ce3
cmp al, 0x79
je 0x403ce3
cmp al, 0x59
je 0x403ce3
movsx eax, al
cmp eax, 0x6e
jne 0x404093
movzx eax, byte [esp + 0x31]
lea edx, [esp + 0x31]
cmp al, 0x20
je 0x404085
cmp al, 9
je 0x404085
movzx eax, byte [edx]
test al, al
mov ecx, edx
je 0x40406d
cmp al, 0xa
je 0x40406d
inc ecx
movzx eax, byte [ecx]
test al, al
je 0x40406d
cmp al, 0xa
jne 0x404061
mov byte [ecx], 0
mov esi, dword [0x429820]
mov dword [esp], edx
call fcn.00419460
mov dword [esi], eax
jmp 0x403f9b
inc edx
movzx eax, byte [edx]
cmp al, 0x20
je 0x404085
cmp al, 9
je 0x404085
jmp 0x404057
cmp eax, 0x6e
jle 0x4040fc
cmp eax, 0x71
jne 0x403f9b
mov dword [esp], 0x403a9b
call sub.libintl_2.dll_libintl_gettext
mov dword [esp + 4], eax
mov eax, dword [0x429670]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ebp, dword [0x429a20]
sub ebp, 5
cmp ebp, 2
jbe 0x4040f0
mov dword [esp], 0x403ad0
call sub.libintl_2.dll_libintl_gettext
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004196d0
mov dword [esp], 2
call sub.msvcrt.dll_exit
cmp eax, 0x21
jne 0x4041e5
call fcn.00420f50
cmp eax, 0xffffffff
jne 0x40413d
mov dword [esp], 0x403aef
call sub.libintl_2.dll_libintl_gettext
mov esi, eax
call sub.msvcrt.dll__errno
mov dword [esp + 8], esi
mov ebx, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], ebx
call fcn.004196d0
jmp 0x403f9b
test eax, eax
je 0x404156
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp], ecx
call fcn.00420f70
jmp 0x403f9b
mov dword [esp], 0x403afc
call sub.msvcrt.dll_getenv
test eax, eax
mov esi, eax
je 0x4041de
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x403b02
mov dword [esp + 4], 0x403b05
mov dword [esp], esi
call sub.msvcrt.dll__execlp
mov dword [esp], 0x403b09
call sub.libintl_2.dll_libintl_gettext
mov ebx, eax
call sub.msvcrt.dll__errno
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov edx, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], edx
call fcn.004196d0
mov dword [esp], 0x4012f0
call sub.libintl_2.dll_libintl_gettext
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 2
call fcn.004196d0
jmp 0x404141
mov esi, 0x403b20
jmp 0x404168
cmp eax, 0x3f
jne 0x403f9b
mov dword [esp], 0x403b30
call sub.libintl_2.dll_libintl_gettext
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], eax
add ecx, 0x40
mov dword [esp], ecx
call sub.msvcrt.dll_fprintf
jmp 0x403f9b
mov dword [esp], 0x403bd0
call sub.libintl_2.dll_libintl_gettext
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
jmp 0x4040b6
mov dword [0x429820], ecx
mov ecx, 1
mov dword [0x428028], ecx
jmp 0x403cb6
mov dword [esp], 0x4033f0
call sub.libintl_2.dll_libintl_gettext
mov edi, eax
call sub.msvcrt.dll__errno
mov ebx, dword [0x429820]
mov dword [esp + 0x14], esi
mov esi, dword [0x429b00]
mov dword [esp + 0x10], esi
mov ecx, dword [ebx]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
mov edi, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], edi
call fcn.004196d0
jmp 0x403c84
mov dword [esp], eax
call sub.msvcrt.dll__close
jmp 0x403c7a
call fcn.00407a40
jmp 0x403c61
mov dword [esp + 4], 0x403bf2
mov dword [esp], 0x403bf4
call sub.msvcrt.dll_fopen
jmp 0x403c37