Function at 0x422db0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510605
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x264], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
push 0x206
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0045abe0
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jne 0x422e54
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push 0x535d6c
mov word [esi], ax
call fcn.00403630
jmp 0x42318a
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov ecx, 0x25
cmovae eax, dword [ebp + 8]
movzx eax, word [eax]
cmp cx, ax
jne 0x422ffe
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004021f0
push 0x559a64
lea ecx, [ebp - 0x260]
call fcn.00407310
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x230]
call fcn.00425170
mov edi, eax
add esp, 4
lea eax, [ebp - 0x248]
cmp eax, edi
je 0x422ef4
cmp dword [ebp - 0x234], 8
jb 0x422ecb
push dword [ebp - 0x248]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
push edi
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.00406b50
cmp dword [ebp - 0x21c], 8
jb 0x422f0b
push dword [ebp - 0x230]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x422f43
push dword [ebp - 0x260]
call fcn.0044ef7f
add esp, 4
push 0x559a68
lea ecx, [ebp - 0x230]
call fcn.00407310
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x230]
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
sete bl
cmp dword [ebp - 0x21c], 8
jb 0x422f9f
push dword [ebp - 0x230]
call fcn.0044ef7f
add esp, 4
test bl, bl
je 0x422fb4
lea ecx, [ebp - 0x260]
call fcn.004233d0
mov byte [ebp - 4], 3
jmp 0x423017
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x218]
push 0x104
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x260]
call fcn.004065f0
add esp, 4
lea ecx, [ebp + 8]
push eax
call fcn.00407a90
jmp 0x42306c
mov ecx, 0x5c
cmp cx, ax
jne 0x423085
lea ecx, [ebp - 0x260]
call fcn.004063c0
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
mov edx, eax
push ecx
lea ecx, [ebp - 0x230]
call fcn.00408cd0
add esp, 4
lea ecx, [ebp + 8]
push eax
call fcn.00407a90
cmp dword [ebp - 0x21c], 8
jb 0x42304b
push dword [ebp - 0x230]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x24c], 8
jb 0x4230e0
push dword [ebp - 0x260]
call fcn.0044ef7f
add esp, 4
jmp 0x4230e0
mov ecx, 0x2f
cmp cx, ax
jne 0x4230e0
sub esp, 0x10
lea ecx, [ebp + 8]
call fcn.004257a0
lea ecx, [ebp - 0x230]
call fcn.004063c0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x260]
call fcn.00408cd0
add esp, 4
lea ecx, [ebp + 8]
push eax
call fcn.00407a90
lea ecx, [ebp - 0x260]
call fcn.004028d0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.004028d0
push 9
xor eax, eax
mov dword [ebp - 0x21c], 7
push str._APPNAME_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00403630
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 6
call fcn.004232c0
push eax
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 7
lea ecx, [ebp + 8]
call fcn.004252c0
add esp, 4
cmp dword [ebp - 0x24c], 8
jb 0x42314b
push dword [ebp - 0x260]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
jb 0x42317f
push dword [ebp - 0x230]
call fcn.0044ef7f
add esp, 4
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00406bb0
cmp dword [ebp - 0x234], 8
jb 0x4231a1
push dword [ebp - 0x248]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x248], ax
mov dword [ebp - 0x238], eax
jb 0x4231cb
push dword [ebp + 8]
call fcn.0044ef7f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ed21
mov esp, ebp
pop ebp
ret