Function at 0x437bf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x489e88]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0x24
mov dword [ebp - 0xc], 0x26
mov dword [ebp - 8], 0x2a
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x18], 0
cmp dword [0x48b7d8], 0
jne 0x437cd6
push 3
push 0x20
push 3
push 1
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov dword [0x48b7d8], 0x11c
mov dword [0x48b7dc], 6
mov dword [0x48b7e0], 1
xor eax, eax
mov word [0x48b8ec], ax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push 0x23
push 0x48b7d8
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x437cc7
mov dword [ebp - 0x34], 0
jmp 0x437cce
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
mov dword [0x4898a8], eax
cmp dword [0x4898a8], 0
je 0x437ce9
mov eax, 1
jmp 0x437ef3
cmp dword [ebp + 8], 0
jne 0x437cf4
jmp 0x437edc
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x437d12
jmp 0x437edc
mov edx, dword [ebp - 0x20]
shl edx, 1
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x437d2e
jmp 0x437edc
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
ja 0x437d52
jmp 0x437edc
mov dword [ebp - 0x18], 0
jmp 0x437d64
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x40]
jge 0x437edc
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x10], 0x26
jne 0x437e41
push 0
push 0
push 0x4898ac
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x437daf
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x437db9
jmp 0x437edc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x4898e8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 0x1c], eax
je 0x437dd8
jmp 0x437edc
mov edx, dword [ebp - 0x14]
push edx
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x437e1a
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x48b900
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + ecx*4 - 0x10]
push edx
call fcn.00436470
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x437e18
jmp 0x437edc
jmp 0x437e3f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2 - 4]
cmp edx, 0x5c
je 0x437e3f
push 0x489970
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00438dc0
jmp 0x437e61
push 0x48b904
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + edx*4 - 0x10]
push eax
call fcn.00436470
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x437e61
jmp 0x437edc
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x24]
mov cx, word [eax]
mov word [ebp - 0x2a], cx
add dword [ebp - 0x24], 2
cmp word [ebp - 0x2a], 0
jne 0x437e70
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x44]
sar edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00446572
add esp, 0xc
test eax, eax
je 0x437eb1
mov dword [ebp - 0x3c], 0
jmp 0x437eb8
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x437ec6
jmp 0x437edc
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], 0
jmp 0x437d5b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b9f3
mov esp, ebp
pop ebp
ret