Function at 0x4028d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc6c
push ebx
push esi
push edi
mov esi, str.src_bootstrpinit.cpp
mov edi, 0x41c128
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x38]
push edx
push 0
call fcn.00403672
add esp, 8
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0xc], eax
xor ebx, ebx
jmp 0x4029be
movzx eax, bx
movsx edx, byte [ebp + eax - 0x38]
push edx
lea ecx, [esi + 0x51a]
push ecx
push dword [0x41c110]
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [esi + 0x52b]
push eax
push dword [0x41c110]
call fcn.0040ce28
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4029bd
push dword [ebp - 0x10]
push 1
push 0x10
lea edx, [ebp - 0x58]
push edx
call fcn.0040d214
add esp, 0x10
test eax, eax
jne 0x402976
push dword [ebp - 0x10]
call fcn.0040c85c
pop ecx
push dword [0x41c110]
call fcn.0040d698
pop ecx
jmp 0x4029bd
push dword [ebp - 0x10]
call fcn.0040c85c
pop ecx
push dword [0x41c110]
call fcn.0040d698
pop ecx
lea ecx, [ebp - 0x48]
push ecx
movzx eax, bx
mov dl, byte [ebp + eax - 0x38]
add dl, 0xc0
push edx
call fcn.0040f6b0
add esp, 8
mov eax, dword [ebp - 0x48]
imul dword [ebp - 0x3c]
imul dword [ebp - 0x40]
cmp eax, dword [ebp - 8]
jbe 0x4029bd
mov dword [ebp - 8], eax
movzx edx, bx
mov cl, byte [ebp + edx - 0x38]
mov byte [ebp - 1], cl
inc ebx
movzx eax, bx
cmp byte [ebp + eax - 0x38], 0
jne 0x40290e
mov ebx, dword [0x41c110]
push 0x104
push dword [0x41c110]
lea eax, [esi + 0x52f]
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x402a28
push 0x104
push dword [0x41c110]
lea edx, [esi + 0x534]
push edx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x402a28
movsx ecx, byte [ebp - 1]
push ecx
lea eax, [esi + 0x538]
push eax
push dword [0x41c110]
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov ebx, dword [0x41c110]
xor eax, eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push ebx
call sub.KERNEL32.DLL_lstrlenA
movsx edx, byte [ebx + eax - 1]
cmp edx, 0x5c
jne 0x402a48
lea ecx, [esi + 0x54f]
jmp 0x402a4e
lea ecx, [esi + 0x550]
push ecx
push ebx
lea eax, [esi + 0x53d]
push eax
push dword [edi]
call sub.USER32.DLL_wsprintfA
add esp, 0x14
push 0x16
lea edx, [ebp - 0x168]
push edx
push dword [edi]
call fcn.0040c9e0
add esp, 0xc
test eax, eax
jne 0x402b47
lea eax, [ebp - 0x18c]
push eax
push dword [edi]
call fcn.0040fb1c
add esp, 8
test eax, eax
jne 0x402b47
push 0
call fcn.00415e3c
pop ecx
mov edx, dword [ebp - 0x16e]
add edx, 0xe10
cmp eax, edx
jl 0x402b33
push dword [edi]
lea ecx, [esi + 0x552]
push ecx
lea eax, [ebp - 0x290]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
push 0x27
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x290]
push ecx
call fcn.0040c9e0
add esp, 0xc
test eax, eax
jne 0x402b33
lea eax, [ebp - 0x158]
push eax
push dword [edi]
lea edx, [esi + 0x559]
push edx
lea ecx, [ebp - 0x394]
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0x10
push 0
lea eax, [ebp - 0x394]
push eax
call fcn.0040f4d0
add esp, 8
lea edx, [ebp - 0x394]
push edx
call fcn.0040d698
pop ecx
lea ecx, [ebp - 0x168]
push ecx
call fcn.0040caa0
pop ecx
test eax, eax
je 0x402ae5
push 0
push dword [edi]
call fcn.0040f4d0
add esp, 8
push dword [edi]
call fcn.00410160
pop ecx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jb 0x402a2d
mov dword [ebp - 0x18], 1
xor eax, eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push ebx
call sub.KERNEL32.DLL_lstrlenA
movsx edx, byte [ebx + eax - 1]
cmp edx, 0x5c
jne 0x402b7b
lea ecx, [esi + 0x571]
jmp 0x402b81
lea ecx, [esi + 0x572]
push ecx
push ebx
lea eax, [esi + 0x55f]
push eax
push dword [edi]
call sub.USER32.DLL_wsprintfA
add esp, 0x14
push 0x16
lea edx, [ebp - 0x168]
push edx
push dword [edi]
call fcn.0040c9e0
add esp, 0xc
test eax, eax
je 0x402bb8
push dword [edi]
call fcn.00410168
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x402bc1
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xa
jb 0x402b60
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_SetErrorMode
cmp dword [ebp - 0x18], 0
je 0x402c5d
xor ebx, ebx
push ebx
movsx eax, byte [ebp - 1]
push eax
lea edx, [esi + 0x574]
push edx
push dword [edi]
call sub.USER32.DLL_wsprintfA
add esp, 0x10
push 0x16
lea ecx, [ebp - 0x168]
push ecx
push dword [edi]
call fcn.0040c9e0
add esp, 0xc
test eax, eax
je 0x402c1c
push dword [edi]
call fcn.00410168
pop ecx
mov dword [ebp - 0x18], eax
push 6
push dword [edi]
call fcn.0040f4d0
add esp, 8
jmp 0x402c22
inc ebx
cmp ebx, 0xa
jb 0x402bd5
cmp dword [ebp - 0x18], 0
je 0x402c5d
push dword [edi]
lea eax, [esi + 0x586]
push eax
push dword [0x41c110]
call sub.USER32.DLL_wsprintfA
add esp, 0xc
push 0x10
lea edx, [esi + 0x5b8]
push edx
push dword [0x41c110]
push dword [0x41c238]
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x402c62
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret