Function at 0x402720
Capabilities:
Get system information on windows
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c8
mov eax, dword [0x407028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x898], edx
mov edi, ecx
mov dword [ebp - 0x874], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8a8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x89c], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x8c4], eax
xor esi, esi
mov dword [ebp - 0x8c0], eax
mov dword [ebp - 0x8bc], eax
mov dword [ebp - 0x8b8], eax
mov dword [ebp - 0x8b4], eax
mov dword [ebp - 0x8b0], eax
mov dword [ebp - 0x8ac], eax
mov dword [ebp - 0x884], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x87c], eax
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov word [ebp - 0x210], ax
mov word [ebp - 0x41c], ax
mov dword [ecx], ebx
mov eax, dword [edi + 4]
mov dword [ebp - 0x870], ecx
mov dword [ebp - 0x8c8], 0x20
mov dword [ebp - 0x878], ebx
test eax, eax
jne 0x402ed8
mov edi, dword [edi]
lea eax, [ebp - 0x88c]
push eax
push 0x20019
push esi
push 0x4012f0
push 0x80000002
mov dword [ebp - 0x88c], ebx
mov dword [ebp - 0x880], ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40284a
lea eax, [ebp - 0x880]
push eax
push 0x20019
push esi
push edi
push dword [ebp - 0x88c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40284a
lea eax, [ebp - 0x884]
push eax
push 0x20019
push esi
push 0x4012d8
push dword [ebp - 0x880]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
je 0x402efa
mov eax, dword [ebp - 0x880]
mov ecx, dword [ebp - 0x88c]
test ecx, ecx
je 0x402867
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0x880]
test eax, eax
je 0x402872
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x40616f
push 0x20a
push esi
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x405f54
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x890]
push eax
push esi
lea eax, [ebp - 0x894]
mov dword [ebp - 0x890], 0x20a
push eax
push 0
push 0x4012c0
push dword [ebp - 0x884]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x405f65
cmp dword [ebp - 0x894], 2
jne 0x405f72
cmp word [esi], bx
je 0x405f83
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402901
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x210]
push ecx
push eax
mov eax, ecx
push eax
push 0x100
push 0x400
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_LCMapStringW]
lea eax, [ebp - 0x890]
mov dword [ebp - 0x890], 0x20a
push eax
push esi
lea eax, [ebp - 0x894]
push eax
push 0
push 0x4012a0
push dword [ebp - 0x884]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
jne 0x405f94
push esi
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
lea ebx, [ebp - 0x210]
push 0x407384
xor edi, edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
mov esi, dword [0x407388]
cmp esi, 0x407388
je 0x4029e0
mov ecx, dword [esi + 0xc]
mov edi, esi
mov eax, ebx
jmp 0x4029a0
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x402ece
test dx, dx
je 0x4029ca
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x402ece
add ecx, 4
add eax, 4
test dx, dx
jne 0x4029a0
xor eax, eax
test eax, eax
je 0x40605c
mov esi, dword [esi]
xor edi, edi
cmp esi, 0x407388
jne 0x402994
push 0x407384
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test edi, edi
jne 0x402ae1
cmp word [ebp - 0x41c], di
jne 0x4060dd
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402a05
sub edi, ecx
lea ebx, [ebp - 0x41c]
sar edi, 1
lea ecx, [ebx + 2]
lea ecx, [ecx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x402a20
sub ebx, ecx
sar ebx, 1
lea eax, [ebx + edi]
lea eax, [eax*2 + 0x20]
push eax
push 8
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov dword [ebp - 0x888], eax
test eax, eax
je 0x40612a
lea esi, [eax + 0x1c]
lea edx, [edi + edi]
mov dword [eax + 0xc], esi
mov edi, eax
lea ecx, [esi + 2]
mov eax, dword [ebp - 0x87c]
add ecx, edx
push edx
push eax
push esi
mov dword [edi + 0x10], ecx
call sub.api_ms_win_core_crt_l1_1_0.dll_memcpy
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [edi + 0x10]
call sub.api_ms_win_core_crt_l1_1_0.dll_memcpy
mov eax, dword [ebp - 0x874]
add esp, 0x18
mov dword [edi + 0x18], eax
push 0x407384
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov eax, dword [0x40738c]
cmp dword [eax], 0x407388
jne 0x406123
mov dword [edi], 0x407388
mov dword [edi + 4], eax
mov dword [eax], edi
push 0x407384
mov dword [0x40738c], edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
xor esi, esi
test edi, edi
je 0x4063b9
mov eax, dword [ebp - 0x878]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x874]
mov esi, dword [ebp - 0x884]
mov dword [ebp - 0x87c], 0
mov dword [eax + 4], edi
mov dword [eax + 8], 0
lea eax, [ebp - 0x87c]
push eax
push 0
lea eax, [ebp - 0x888]
push eax
push 0xffff
push 0x401288
push 0
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x402de2
mov eax, dword [ebp - 0x874]
xor esi, esi
xor ebx, ebx
mov edi, dword [eax + 4]
test edi, edi
je 0x402dae
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x402b4d
mov ebx, 0x401334
lea eax, [ebp - 0x878]
xor esi, esi
push eax
push dword [edi + 0x14]
mov dword [ebp - 0x878], esi
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_ActivateActCtx]
test eax, eax
je 0x4061d3
mov esi, dword [edi + 8]
test esi, esi
jne 0x402b8d
push 8
push esi
push dword [edi + 0xc]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x4061e6
mov dword [edi + 8], esi
push 0x104
lea eax, [ebp - 0x624]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
je 0x4061e6
xor edi, edi
push edi
push edi
push 0x405590
push 0x4073c0
call dword [sym.imp.ntdll.dll_RtlRunOnceExecuteOnce]
test eax, eax
js 0x4061fb
push edi
push 0x20
lea eax, [ebp - 0x84c]
push eax
push 0xa4
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x402bf0
test byte [ebp - 0x84c], 0x10
jne 0x406209
mov eax, dword [ebp - 0x870]
mov dword [eax], edi
test edi, edi
jne 0x4061f4
push ebx
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406282
push dword [ebp - 0x878]
push 0
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_DeactivateActCtx]
mov eax, dword [ebp - 0x898]
xor edi, edi
mov dword [ebp - 0x878], edi
mov dword [eax], esi
mov eax, dword [ebp - 0x874]
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x878]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_ActivateActCtx]
test eax, eax
je 0x402cdc
mov esi, dword [ebx + 8]
test esi, esi
je 0x406295
push 0x104
lea eax, [ebp - 0x624]
push eax
push 0xffffffffffffffff
push 0x401250
push 0
push 0
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
je 0x402cce
push 0
push 0
push 0x405590
push 0x4073c0
call dword [sym.imp.ntdll.dll_RtlRunOnceExecuteOnce]
test eax, eax
js 0x4062b4
push 0
push 0x20
lea eax, [ebp - 0x84c]
push eax
push 0xa4
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x402cc0
test byte [ebp - 0x84c], 0x10
jne 0x4062bf
push 0x401250
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov edi, eax
push dword [ebp - 0x878]
push 0
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_DeactivateActCtx]
mov eax, dword [ebp - 0x89c]
xor ebx, ebx
xor esi, esi
mov dword [eax], edi
test edi, edi
jne 0x402dae
mov eax, dword [ebp - 0x874]
mov dword [ebp - 0x874], esi
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x874]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_ActivateActCtx]
test eax, eax
je 0x402da2
mov esi, dword [ebx + 8]
test esi, esi
je 0x406327
push 0x104
lea eax, [ebp - 0x82c]
push eax
push 0xffffffffffffffff
push 0x40126c
push 0
push 0
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
je 0x402d94
push 0
push 0
push 0x405590
push 0x4073c0
call dword [sym.imp.ntdll.dll_RtlRunOnceExecuteOnce]
test eax, eax
js 0x406346
push 0
push 0x20
lea eax, [ebp - 0x86c]
push eax
push 0xa4
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x402d86
test byte [ebp - 0x86c], 0x10
jne 0x406351
push 0x40126c
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov edi, eax
push dword [ebp - 0x874]
push 0
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_DeactivateActCtx]
mov eax, dword [ebp - 0x8a8]
xor ebx, ebx
xor esi, esi
mov dword [eax], edi
mov eax, dword [ebp - 0x884]
test eax, eax
je 0x402dbf
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x4063c4
test ebx, ebx
jne 0x4063d8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004057a0
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x888], 1
jne 0x402b2c
mov eax, dword [ebp - 0x87c]
test eax, eax
je 0x402b2c
push eax
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x402b2c
lea eax, [ebp - 0x87c]
push eax
push edi
lea eax, [ebp - 0x888]
push eax
push 0xffff
push 0x401288
push 0
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x406141
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402e45
push 0
push 0
sub ecx, edx
push 0
sar ecx, 1
push 0
lea eax, [ecx + 1]
push eax
push edi
push 0x400
push 0
mov dword [ebp - 0x878], eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x402eba
push ebx
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x402eba
push 0
push 0
push ebx
push esi
push dword [ebp - 0x878]
push edi
push 0x400
push 0
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
test eax, eax
je 0x406155
mov eax, dword [ebp - 0x874]
mov dword [eax + 8], esi
push edi
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x402b2c
sbb eax, eax
or eax, 1
jmp 0x4029cc
mov edi, eax
cmp dword [eax + 8], ebx
jne 0x402eef
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x402eef
cmp word [ecx], bx
jne 0x40617c
mov eax, dword [ebp - 0x874]
jmp 0x402b41
mov eax, dword [ebp - 0x880]
mov dword [ebp - 0x884], eax
xor eax, eax
mov dword [ebp - 0x880], eax
xor esi, esi
jmp 0x402850
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 8
jmp 0x402dae
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402dae
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 2
jmp 0x402dae
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 2
jmp 0x402dae
test eax, eax
je 0x405fae
cmp eax, 3
je 0x402964
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402dae
cmp dword [ebp - 0x894], 2
je 0x405fc8
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 2
jmp 0x402dae
cmp word [esi], bx
jne 0x405fde
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 2
jmp 0x402dae
push 0x104
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
push esi
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
lea ecx, [ebp - 0x41c]
call fcn.004043d0
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406014
sub ecx, edx
sar ecx, 1
je 0x402973
lea eax, [ebp - 0x210]
lea eax, [eax + ecx*2]
movzx edx, word [eax - 2]
mov esi, eax
sub eax, 2
dec ecx
cmp edx, 0x5c
je 0x40604f
cmp edx, 0x2f
je 0x40604f
test ecx, ecx
jne 0x406032
jmp 0x402973
mov ebx, esi
mov dword [ebp - 0x87c], ebx
jmp 0x402979
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x41c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40608b
test dx, dx
je 0x406087
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40608b
add eax, 4
add ecx, 4
test dx, dx
jne 0x406065
xor eax, eax
jmp 0x406090
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4029d4
mov eax, dword [ebp - 0x874]
mov ecx, dword [eax]
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4060cb
test dx, dx
je 0x4060c7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4060cb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4060a5
xor eax, eax
jmp 0x4060d0
sbb eax, eax
or eax, 1
test eax, eax
je 0x4029e0
jmp 0x4029d4
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x8c0], eax
lea eax, [ebp - 0x8c8]
push eax
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_CreateActCtxW]
mov ebx, eax
mov dword [ebp - 0x878], ebx
cmp ebx, 0xffffffff
jne 0x406118
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [ebp - 0x870]
xor esi, esi
mov dword [ecx], eax
jmp 0x402dae
mov ebx, dword [ebp - 0x87c]
jmp 0x402a00
mov ecx, 3
int 0x29
mov eax, dword [ebp - 0x870]
mov edi, dword [ebp - 0x888]
mov dword [eax], 8
jmp 0x402ace
push edi
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x402b2c
push esi
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x402eba
mov eax, dword [ebp - 0x870]
mov dword [eax], esi
jmp 0x402b2c
lea eax, [ebp - 0x8c8]
mov dword [ebp - 0x8c0], ecx
push eax
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_CreateActCtxW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4061a9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402dae
mov edi, dword [ebp - 0x874]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4061c8
cmp ecx, 0xffffffff
je 0x4061c8
push ecx
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_ReleaseActCtx]
mov eax, dword [edi + 4]
mov dword [eax + 0x14], ebx
mov edi, dword [edi + 4]
jmp 0x402eef
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402c20
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
xor esi, esi
jmp 0x402c12
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x402bf0
cmp dword [0x407398], edi
je 0x406278
mov eax, dword [0x40739c]
mov dword [ebp - 0x8a0], eax
test eax, eax
je 0x406278
lea ecx, [ebp - 0x8a4]
push ecx
lea ecx, [ebp - 0x624]
push ecx
push esi
push 1
mov ecx, eax
call dword [0x408260]
call dword [ebp - 0x8a0]
test eax, eax
jns 0x40625b
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x406202
movzx edi, ax
jmp 0x402bf0
cmp dword [ebp - 0x8a4], edi
jne 0x402bf0
mov eax, dword [ebp - 0x870]
mov dword [eax], 5
jmp 0x4061f4
mov edi, 5
jmp 0x402bf0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402c12
push 8
push 0
push dword [ebx + 0xc]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x402cce
mov dword [ebx + 8], esi
jmp 0x402c5c
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
jmp 0x406309
cmp dword [0x407398], edi
je 0x402cce
mov ebx, dword [0x40739c]
test ebx, ebx
je 0x402cce
lea eax, [ebp - 0x898]
mov ecx, ebx
push eax
lea eax, [ebp - 0x624]
push eax
push esi
push 1
call dword [0x408260]
call ebx
mov ecx, eax
test ecx, ecx
jns 0x406316
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x406309
movzx ecx, cx
test ecx, ecx
jne 0x402cce
jmp 0x402cc0
cmp dword [ebp - 0x898], edi
je 0x402cce
jmp 0x402cc0
push 8
push 0
push dword [ebx + 0xc]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x402d94
mov dword [ebx + 8], esi
jmp 0x402d22
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
jmp 0x40639b
cmp dword [0x407398], edi
je 0x402d94
mov ebx, dword [0x40739c]
test ebx, ebx
je 0x402d94
lea eax, [ebp - 0x89c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x82c]
push eax
push esi
push 1
call dword [0x408260]
call ebx
mov ecx, eax
test ecx, ecx
jns 0x4063a8
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x40639b
movzx ecx, cx
test ecx, ecx
jne 0x402d94
jmp 0x402d86
cmp dword [ebp - 0x89c], edi
je 0x402d94
jmp 0x402d86
mov ebx, dword [ebp - 0x878]
jmp 0x402dae
push esi
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x402dc7
cmp ebx, 0xffffffff
je 0x402dcf
push ebx
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_ReleaseActCtx]
jmp 0x402dcf