Function at 0x43b170
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0xc], eax
mov word [ebp - 0xe], 0
movzx eax, word [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + 6]
cmp eax, ecx
jge 0x43b4d5
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + 0x14]
add eax, ecx
movzx ecx, word [ebp - 0xe]
imul ecx, ecx, 0x28
add eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x1a]
mov dword [esp], eax
call fcn.00443990
lea ecx, [ebp - 0x1a]
call fcn.004439b0
mov ecx, dword [ebp - 0x54]
mov edx, eax
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
call sub.msvcrt.dll_strcmp
cmp eax, 0
setne al
xor al, 0xff
test al, 1
jne 0x43b201
jmp 0x43b4bf
lea ecx, [ebp - 0x1b]
call fcn.004439c0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x1c]
call fcn.00443a70
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x490d08]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x21]
call fcn.00443b20
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x43b29b
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x43b298
lea ecx, [ebp - 0x29]
call fcn.00443bd0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x28]
lea ecx, [ebp - 0x2a]
call fcn.00443c80
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x40
call fcn.00443d30
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x31]
call fcn.00444260
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x32]
call fcn.00444310
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x490d0c]
mov dword [ebp - 0x36], eax
lea ecx, [ebp - 0x37]
call fcn.004443c0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x43b372
lea eax, [ebp - 0x36]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x43b36f
lea ecx, [ebp - 0x3d]
call fcn.00444470
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x3c]
lea ecx, [ebp - 0x3e]
call fcn.00444520
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
cmp dword [ebp - 0x30], 0
jne 0x43b450
lea ecx, [ebp - 0x3f]
call fcn.004445d0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x40]
call fcn.00444680
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x490d10]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x45]
call fcn.00444730
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x43b42d
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x43b42a
lea ecx, [ebp - 0x4d]
call fcn.004447e0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x4c]
lea ecx, [ebp - 0x4e]
call fcn.00444890
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov dword [ebp - 4], 9
jmp 0x43b4dc
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
add ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00443d30
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x43b4b3
mov dword [ebp - 4], 0xa
jmp 0x43b4dc
mov dword [ebp - 4], 0
jmp 0x43b4dc
jmp 0x43b4c4
mov ax, word [ebp - 0xe]
add ax, 1
mov word [ebp - 0xe], ax
jmp 0x43b194
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 4]
add esp, 0x60
pop ebp
ret