Function at 0x402130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0xffffffff
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x68]
mov ebp, dword [esp + 0x7c]
cmp byte [esi], 0x3a
mov ebx, dword [ebp + 4]
sete dl
movzx ecx, dl
dec ecx
and ecx, ebx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x60]
test ecx, ecx
jle 0x402287
mov dword [ebp + 0xc], 0
mov ebx, dword [ebp]
test ebx, ebx
je 0x402ca0
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x4021d3
lea esi, [esi]
mov dword [ebp + 0x24], ebx
mov esi, dword [esp + 0x68]
mov dword [ebp + 0x20], ebx
mov ecx, dword [esp + 0x78]
xor ebx, ebx
mov dword [ebp + 0x14], 0
test ecx, ecx
je 0x402c80
mov ebx, 1
mov dword [ebp + 0x1c], ebx
mov ecx, dword [esp + 0x68]
movzx eax, byte [ecx]
cmp al, 0x2d
je 0x402c70
cmp al, 0x2b
je 0x402c59
xor edx, edx
test ebx, ebx
sete dl
mov dword [ebp + 0x18], edx
mov dword [esp + 0x68], esi
mov dword [ebp + 0x10], 1
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4021e3
cmp byte [eax], 0
jne 0x4022c0
mov ebx, dword [ebp]
cmp dword [ebp + 0x24], ebx
jle 0x4021ee
mov dword [ebp + 0x24], ebx
cmp dword [ebp + 0x20], ebx
jle 0x4021f6
mov dword [ebp + 0x20], ebx
cmp dword [ebp + 0x18], 1
je 0x402bd0
cmp ebx, dword [esp + 0x60]
je 0x402bb4
cld
mov ecx, dword [esp + 0x64]
mov edx, 3
mov edi, 0x401ee0
mov esi, dword [ecx + ebx*4]
mov ecx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40225c
mov edx, dword [ebp + 0x24]
lea eax, [ebx + 1]
cmp dword [ebp + 0x20], edx
mov dword [ebp], eax
je 0x402bc8
cmp edx, eax
je 0x402250
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
call fcn.00402de0
nop
lea esi, [esi]
mov eax, dword [esp + 0x60]
mov ebx, eax
mov dword [ebp + 0x24], eax
mov dword [ebp], eax
cmp ebx, dword [esp + 0x60]
je 0x402bb4
mov esi, dword [esp + 0x64]
mov eax, dword [esi + ebx*4]
cmp byte [eax], 0x2d
je 0x402297
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x402290
mov dword [ebp + 0xc], eax
lea edi, [ebx + 1]
mov eax, 1
mov dword [ebp], edi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x402287
movzx edx, byte [eax + 1]
test dl, dl
je 0x402272
mov ebx, dword [esp + 0x6c]
xor ecx, ecx
test ebx, ebx
je 0x4022b2
cmp dl, 0x2d
je 0x402baa
lea esi, [ecx + eax + 1]
mov dword [ebp + 0x14], esi
lea esi, [esi]
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x402650
mov edx, dword [ebp]
mov edi, dword [esp + 0x64]
mov eax, dword [edi + edx*4]
movzx edx, byte [eax + 1]
cmp dl, 0x2d
je 0x4022f5
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x402650
cmp byte [eax + 2], 0
je 0x402b8a
mov dword [esp + 0x44], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov edi, ecx
mov dword [esp + 0x38], 0xffffffff
movzx eax, byte [ecx]
test al, al
je 0x40233c
cmp al, 0x3d
je 0x40233c
lea esi, [esi]
lea edi, [edi]
inc edi
movzx eax, byte [edi]
test al, al
je 0x40233c
cmp al, 0x3d
jne 0x402330
mov dword [esp + 0x34], 0
mov esi, dword [esp + 0x6c]
mov ebx, dword [esi]
test ebx, ebx
mov edx, ebx
je 0x402570
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 4], ecx
mov ebx, edi
sub ebx, ecx
mov dword [esp + 8], ebx
mov dword [esp], edx
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x402b06
inc dword [esp + 0x34]
add esi, 0x10
mov ecx, dword [esi]
test ecx, ecx
mov edx, ecx
je 0x402390
mov ecx, dword [ebp + 0x14]
jmp 0x402360
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x4023a4
mov edx, dword [esp + 0x40]
test edx, edx
je 0x402ab0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x402570
mov ecx, dword [ebp]
lea eax, [ecx + 1]
mov dword [ebp], eax
cmp byte [edi], 0
je 0x4024d0
mov ecx, dword [esp + 0x44]
mov esi, dword [ecx + 4]
test esi, esi
je 0x402416
lea ebx, [edi + 1]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add dword [ebp + 0x14], eax
mov esi, dword [esp + 0x70]
test esi, esi
je 0x4023f3
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x70]
mov dword [ecx], ebp
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40240a
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0xc]
jmp 0x402287
mov esi, dword [eax + 0xc]
xor eax, eax
mov dword [ecx], esi
jmp 0x402287
mov edi, dword [esp + 0x48]
test edi, edi
je 0x402470
mov esi, dword [esp + 0x64]
mov edx, dword [esi + eax*4 - 4]
cmp byte [edx + 1], 0x2d
je 0x402492
mov dword [esp], 0x401f00
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov edx, dword [esp + 0x44]
mov edi, dword [edx]
mov dword [esp + 0x10], edi
mov ebx, dword [ebp]
mov edi, dword [esp + 0x64]
mov ecx, dword [edi + ebx*4 - 4]
movsx esi, byte [ecx]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
add ecx, 0x40
mov dword [esp + 0xc], esi
mov ebx, dword [edi]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], ebx
call sub.msvcrt.dll_fprintf
mov ecx, dword [ebp + 0x14]
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
add dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 0xc]
mov dword [ebp + 8], esi
mov eax, 0x3f
jmp 0x402287
mov dword [esp], 0x401f40
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x64]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [edx]
add ecx, 0x40
mov dword [esp + 0xc], esi
mov ebx, dword [edi]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], ebx
call sub.msvcrt.dll_fprintf
jmp 0x402470
mov ebx, dword [esp + 0x44]
cmp dword [ebx + 4], 1
jne 0x4023d3
cmp eax, dword [esp + 0x60]
jge 0x4024f9
mov ebx, dword [esp + 0x64]
lea edi, [ecx + 2]
mov dword [ebp], edi
mov esi, dword [ebx + eax*4]
mov dword [ebp + 0xc], esi
jmp 0x4023d3
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x402530
mov edx, dword [ebp + 0x14]
mov dword [esp], edx
call sub.msvcrt.dll_strlen
add dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
mov edi, dword [eax + 0xc]
mov dword [ebp + 8], edi
mov ebp, dword [esp + 0x68]
cmp byte [ebp], 0x3a
setne bl
movzx esi, bl
lea eax, [esi + esi*4 + 0x3a]
jmp 0x402287
mov dword [esp], 0x401f80
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov ecx, dword [ebp]
mov esi, dword [esp + 0x64]
mov ebx, dword [esi + ecx*4 - 4]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], ebx
mov edi, dword [esi]
add ecx, 0x40
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], edi
call sub.msvcrt.dll_fprintf
jmp 0x402501
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4025a6
mov ebx, dword [ebp]
mov esi, dword [esp + 0x64]
mov edi, dword [esi + ebx*4]
cmp byte [edi + 1], 0x2d
je 0x4025a9
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x68]
movsx ebx, byte [ecx]
mov dword [esp], edx
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x402650
mov ebx, dword [ebp]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x402601
mov esi, dword [esp + 0x64]
mov edi, dword [esi + ebx*4]
cmp byte [edi + 1], 0x2d
je 0x40261a
mov dword [esp], 0x401fc0
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
mov ebx, dword [ebp]
mov edi, dword [esp + 0x64]
mov esi, dword [edi + ebx*4]
movsx ecx, byte [esi]
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x40
mov dword [esp + 0xc], ecx
mov ebx, dword [edi]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 8], ebx
call sub.msvcrt.dll_fprintf
mov ebx, dword [ebp]
mov dword [ebp + 0x14], 0x401fe0
lea edx, [ebx + 1]
mov dword [ebp], edx
mov dword [ebp + 8], 0
jmp 0x402488
mov dword [esp], 0x402000
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov ecx, dword [ebp + 0x14]
mov edi, dword [esp + 0x64]
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], ecx
mov ebx, dword [edi]
add edx, 0x40
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
jmp 0x4025fe
mov esi, dword [ebp + 0x14]
movzx ebx, byte [esi]
inc esi
mov dword [ebp + 0x14], esi
mov ecx, dword [esp + 0x68]
movsx esi, bl
mov dword [esp + 4], esi
mov edi, esi
mov dword [esp], ecx
call sub.msvcrt.dll_strchr
mov ecx, dword [ebp + 0x14]
cmp byte [ecx], 0
jne 0x40267a
inc dword [ebp]
test eax, eax
je 0x402a60
cmp bl, 0x3a
je 0x402a60
cmp byte [eax], 0x57
je 0x402746
movzx edx, byte [eax + 1]
cmp dl, 0x3a
je 0x4026a4
mov eax, esi
jmp 0x402287
cmp byte [eax + 2], 0x3a
je 0x402731
cmp byte [ecx], 0
je 0x4026c2
inc dword [ebp]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], 0
jmp 0x40269d
mov ecx, dword [ebp]
cmp ecx, dword [esp + 0x60]
je 0x4026dd
mov eax, dword [esp + 0x64]
lea edx, [ecx + 1]
mov dword [ebp], edx
mov ebx, dword [eax + ecx*4]
mov dword [ebp + 0xc], ebx
jmp 0x4026b9
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x4026ff
mov dword [ebp + 8], edi
mov edi, dword [esp + 0x68]
cmp byte [edi], 0x3a
je 0x4026f8
mov esi, 0x3f
jmp 0x4026b9
mov esi, 0x3a
jmp 0x4026b9
mov dword [esp], 0x402020
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0x64]
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [ebx]
add edx, 0x40
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
jmp 0x4026e5
cmp byte [ecx], 0
jne 0x4026b3
mov dword [ebp + 0xc], 0
jmp 0x4026b9
movzx edx, byte [eax + 1]
cmp dl, 0x3b
jne 0x402698
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
cmp byte [ecx], 0
je 0x4029eb
inc dword [ebp]
mov dword [ebp + 0xc], ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x14], edi
movzx eax, byte [edi]
test al, al
je 0x40279f
cmp al, 0x3d
je 0x40279f
inc edi
movzx eax, byte [edi]
test al, al
je 0x40279f
cmp al, 0x3d
jne 0x402793
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x6c]
mov eax, dword [esi]
test eax, eax
je 0x402930
mov ecx, eax
mov ebx, dword [ebp + 0x14]
mov eax, edi
mov dword [esp], ecx
sub eax, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x402997
inc dword [esp + 0x20]
add esi, 0x10
mov edx, dword [esi]
test edx, edx
mov ecx, edx
jne 0x4027b7
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4027f9
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x402941
mov esi, dword [esp + 0x30]
test esi, esi
je 0x402930
cmp byte [edi], 0
je 0x4028b0
mov ecx, dword [esp + 0x30]
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x402858
lea edx, [edi + 1]
mov dword [ebp + 0xc], edx
mov edi, dword [ebp + 0x14]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
add dword [ebp + 0x14], eax
mov eax, dword [esp + 0x70]
test eax, eax
je 0x402840
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x70]
mov dword [ebp], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40240a
mov ecx, dword [esp + 0x30]
jmp 0x402402
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x402873
mov ecx, dword [ebp + 0x14]
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
add dword [ebp + 0x14], eax
jmp 0x402488
mov dword [esp], 0x402060
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x64]
mov edi, dword [edx]
mov dword [esp + 0xc], edi
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [ebx]
mov dword [esp + 4], eax
add edi, 0x40
mov dword [esp + 8], esi
mov dword [esp], edi
call sub.msvcrt.dll_fprintf
jmp 0x402860
mov esi, dword [esp + 0x30]
cmp dword [esi + 4], 1
jne 0x40281f
mov ecx, dword [ebp]
cmp ecx, dword [esp + 0x60]
jge 0x4028dc
mov eax, dword [esp + 0x64]
lea ebx, [ecx + 1]
mov dword [ebp], ebx
mov edi, dword [eax + ecx*4]
mov dword [ebp + 0xc], edi
jmp 0x40281f
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x4028f7
mov edx, dword [ebp + 0x14]
mov dword [esp], edx
call sub.msvcrt.dll_strlen
add dword [ebp + 0x14], eax
jmp 0x402519
mov dword [esp], 0x401f80
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov ecx, dword [ebp]
mov ebx, dword [esp + 0x64]
mov edi, dword [ebx + ecx*4 - 4]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], edi
mov esi, dword [ebx]
add ecx, 0x40
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], esi
call sub.msvcrt.dll_fprintf
jmp 0x4028e4
mov dword [ebp + 0x14], 0
mov eax, 0x57
jmp 0x402287
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x40295f
mov edx, dword [ebp + 0x14]
mov dword [esp], edx
call sub.msvcrt.dll_strlen
add dword [ebp + 0x14], eax
inc dword [ebp]
jmp 0x402488
mov dword [esp], 0x4020a0
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov ecx, dword [ebp]
mov ebx, dword [esp + 0x64]
mov edi, dword [ebx + ecx*4]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], edi
mov esi, dword [ebx]
add ecx, 0x40
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], esi
call sub.msvcrt.dll_fprintf
jmp 0x402949
mov edx, dword [ebp + 0x14]
mov ebx, edi
mov ecx, dword [esi]
sub ebx, edx
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
cmp ebx, eax
je 0x4029d2
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x4029c1
mov dword [esp + 0x28], 1
jmp 0x4027d6
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
jmp 0x4027d6
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], eax
jmp 0x4027e5
mov edx, dword [ebp]
cmp edx, dword [esp + 0x60]
je 0x402a09
mov ebx, dword [esp + 0x64]
lea esi, [edx + 1]
mov dword [ebp], esi
mov edi, dword [ebx + edx*4]
mov dword [ebp + 0xc], edi
jmp 0x402782
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x402a2c
mov dword [ebp + 8], esi
mov ebp, dword [esp + 0x68]
cmp byte [ebp], 0x3a
je 0x402a28
mov bl, 0x3f
movsx eax, bl
jmp 0x402287
mov bl, 0x3a
jmp 0x402a20
mov dword [esp], 0x402020
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x64]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov ebx, dword [edx]
add ecx, 0x40
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp], ecx
call sub.msvcrt.dll_fprintf
jmp 0x402a11
mov eax, dword [esp + 0x48]
test eax, eax
je 0x402a9f
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x402aa7
mov dword [esp], 0x4020c1
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov dword [esp + 0xc], esi
mov ebx, dword [esp + 0x64]
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [ebx]
add edx, 0x40
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
mov dword [ebp + 8], edi
jmp 0x402488
mov dword [esp], 0x4020db
jmp 0x402a76
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x402ace
mov edx, dword [ebp + 0x14]
mov dword [esp], edx
call sub.msvcrt.dll_strlen
add dword [ebp + 0x14], eax
inc dword [ebp]
jmp 0x40260e
mov dword [esp], 0x4020f5
call dword [sym.imp.libintl3.dll_libintl_gettext]
mov ebx, dword [ebp]
mov edi, dword [esp + 0x64]
mov ecx, dword [edi + ebx*4]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], ecx
mov esi, dword [edi]
add ebx, 0x40
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], esi
call sub.msvcrt.dll_fprintf
jmp 0x402ab8
mov ecx, dword [ebp + 0x14]
mov ebx, edi
mov edx, dword [esi]
sub ebx, ecx
mov dword [esp], edx
call sub.msvcrt.dll_strlen
cmp ebx, eax
je 0x402b71
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x402b60
mov edx, dword [esp + 0x74]
test edx, edx
jne 0x402b37
mov ecx, dword [esp + 0x44]
mov ebx, dword [esi + 4]
cmp dword [ecx + 4], ebx
je 0x402b44
mov dword [esp + 0x3c], 1
jmp 0x40237c
mov edx, dword [esi + 8]
cmp dword [ecx + 8], edx
jne 0x402b37
mov ebx, dword [esi + 0xc]
cmp dword [ecx + 0xc], ebx
jne 0x402b37
jmp 0x40237c
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
jmp 0x40237c
mov dword [esp + 0x44], esi
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], 1
mov dword [esp + 0x38], ecx
jmp 0x402390
mov eax, dword [esp + 0x68]
movsx esi, dl
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x402650
jmp 0x4022f5
mov ecx, 1
jmp 0x4022b2
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp + 0x24]
je 0x402290
mov dword [ebp], eax
jmp 0x402290
mov dword [ebp + 0x20], eax
jmp 0x402250
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
cmp edx, eax
je 0x402c50
cmp eax, ebx
je 0x402bf1
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
call fcn.00402de0
mov ebx, dword [ebp]
cmp ebx, dword [esp + 0x60]
jge 0x402c40
mov esi, dword [esp + 0x64]
mov eax, dword [esi + ebx*4]
cmp byte [eax], 0x2d
je 0x402c48
lea esi, [esi]
lea edi, [edi]
lea eax, [ebx + 1]
mov ebx, eax
mov dword [ebp], eax
cmp eax, dword [esp + 0x60]
jge 0x402c40
mov edi, dword [esp + 0x64]
mov edx, dword [edi + eax*4]
cmp byte [edx], 0x2d
je 0x402c30
mov ebx, eax
jmp 0x402c10
cmp byte [edx + 1], 0
je 0x402c2a
lea esi, [esi]
lea edi, [edi]
mov dword [ebp + 0x24], ebx
jmp 0x402200
cmp byte [eax + 1], 0
je 0x402c10
jmp 0x402c40
cmp edx, ebx
je 0x402bf1
mov dword [ebp + 0x20], ebx
jmp 0x402bf1
mov dword [ebp + 0x18], 0
mov esi, dword [esp + 0x68]
inc esi
jmp 0x4021c8
mov dword [ebp + 0x18], 2
mov esi, ecx
jmp 0x402c64
mov dword [esp], 0x402113
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4021a4
jmp 0x40219f
mov dword [ebp], 1
mov ebx, 1
jmp 0x402180