Function at 0x402420
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 [0x407030]
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 0x402bde
mov edi, dword [edi]
lea eax, [ebp - 0x88c]
push eax
push 0x20019
push esi
push 0x4012c8
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 0x40254a
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 0x40254a
lea eax, [ebp - 0x884]
push eax
push 0x20019
push esi
push 0x4012b0
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 0x402c0a
mov eax, dword [ebp - 0x880]
mov ecx, dword [ebp - 0x88c]
test ecx, ecx
je 0x402567
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 0x402572
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x405671
push 0x20a
push esi
push dword [0x407378]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x405456
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 0x401370
push dword [ebp - 0x884]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x405467
cmp dword [ebp - 0x894], 2
jne 0x405474
cmp word [esi], bx
je 0x405485
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 0x402601
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 0x401350
push dword [ebp - 0x884]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
jne 0x405496
xor eax, eax
push esi
push eax
push dword [0x407378]
mov word [ebp - 0x41c], ax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
lea ebx, [ebp - 0x210]
push 0x407380
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 0x4026f0
lea esp, [esp]
mov ecx, dword [esi + 0xc]
mov edi, esi
mov eax, ebx
jmp 0x4026b0
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x402c00
test dx, dx
je 0x4026da
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x402c00
add ecx, 4
add eax, 4
test dx, dx
jne 0x4026b0
xor eax, eax
test eax, eax
je 0x40555e
mov esi, dword [esi]
xor edi, edi
cmp esi, 0x407388
jne 0x4026a0
push 0x407380
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test edi, edi
jne 0x4027f1
cmp word [ebp - 0x41c], di
jne 0x4055df
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402715
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 0x402730
sub ebx, ecx
sar ebx, 1
lea eax, [ebx + edi]
lea eax, [eax*2 + 0x20]
push eax
push 8
push dword [0x407378]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov dword [ebp - 0x888], eax
test eax, eax
je 0x40562c
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 0x407380
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov eax, dword [0x40738c]
cmp dword [eax], 0x407388
jne 0x405625
mov dword [edi], 0x407388
mov dword [edi + 4], eax
mov dword [eax], edi
push 0x407380
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 0x4058bb
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 0x402af2
mov eax, dword [ebp - 0x874]
xor esi, esi
xor ebx, ebx
mov edi, dword [eax + 4]
test edi, edi
je 0x402abe
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x40285d
mov ebx, 0x401388
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 0x4056d5
mov esi, dword [edi + 8]
test esi, esi
jne 0x40289d
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 0x4056e8
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 0x4056e8
xor edi, edi
push edi
push edi
push 0x404f70
push 0x4073b8
call dword [sym.imp.ntdll.dll_RtlRunOnceExecuteOnce]
test eax, eax
js 0x4056fd
push edi
push 0x20
lea eax, [ebp - 0x84c]
push eax
push 0xa4
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x402900
test byte [ebp - 0x84c], 0x10
jne 0x40570b
mov eax, dword [ebp - 0x870]
mov dword [eax], edi
test edi, edi
jne 0x4056f6
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 0x405784
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 0x4029ec
mov esi, dword [ebx + 8]
test esi, esi
je 0x405797
push 0x104
lea eax, [ebp - 0x624]
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 0x4029de
push 0
push 0
push 0x404f70
push 0x4073b8
call dword [sym.imp.ntdll.dll_RtlRunOnceExecuteOnce]
test eax, eax
js 0x4057b6
push 0
push 0x20
lea eax, [ebp - 0x84c]
push eax
push 0xa4
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x4029d0
test byte [ebp - 0x84c], 0x10
jne 0x4057c1
push 0x40126c
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 0x402abe
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 0x402ab2
mov esi, dword [ebx + 8]
test esi, esi
je 0x405829
push 0x104
lea eax, [ebp - 0x82c]
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 0x402aa4
push 0
push 0
push 0x404f70
push 0x4073b8
call dword [sym.imp.ntdll.dll_RtlRunOnceExecuteOnce]
test eax, eax
js 0x405848
push 0
push 0x20
lea eax, [ebp - 0x86c]
push eax
push 0xa4
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x402a96
test byte [ebp - 0x86c], 0x10
jne 0x405853
push 0x401250
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 0x402acf
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x4058c6
test ebx, ebx
jne 0x4058da
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405030
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x888], 1
jne 0x40283c
mov eax, dword [ebp - 0x87c]
test eax, eax
je 0x40283c
push eax
push 0
push dword [0x407378]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40283c
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 0x405643
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b55
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 0x402bca
push ebx
push 0
push dword [0x407378]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x402bca
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 0x405657
mov eax, dword [ebp - 0x874]
mov dword [eax + 8], esi
push edi
push 0
push dword [0x407378]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x40283c
mov edi, eax
cmp dword [eax + 8], ebx
jne 0x402bf5
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x402bf5
cmp word [ecx], bx
jne 0x40567e
mov eax, dword [ebp - 0x874]
jmp 0x402851
sbb eax, eax
or eax, 1
jmp 0x4026dc
mov eax, dword [ebp - 0x880]
mov dword [ebp - 0x884], eax
xor eax, eax
mov dword [ebp - 0x880], eax
xor esi, esi
jmp 0x402550
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 8
jmp 0x402abe
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402abe
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 2
jmp 0x402abe
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 2
jmp 0x402abe
test eax, eax
je 0x4054b0
cmp eax, 3
je 0x402664
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402abe
cmp dword [ebp - 0x894], 2
je 0x4054ca
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 2
jmp 0x402abe
cmp word [esi], bx
jne 0x4054e0
mov ecx, dword [ebp - 0x870]
mov dword [ecx], 2
jmp 0x402abe
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 [0x407378]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
lea ecx, [ebp - 0x41c]
call fcn.00404200
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405516
sub ecx, edx
sar ecx, 1
je 0x40267b
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 0x405551
cmp edx, 0x2f
je 0x405551
test ecx, ecx
jne 0x405534
jmp 0x40267b
mov ebx, esi
mov dword [ebp - 0x87c], ebx
jmp 0x402681
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x41c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40558d
test dx, dx
je 0x405589
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40558d
add eax, 4
add ecx, 4
test dx, dx
jne 0x405567
xor eax, eax
jmp 0x405592
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4026e4
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 0x4055cd
test dx, dx
je 0x4055c9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4055cd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4055a7
xor eax, eax
jmp 0x4055d2
sbb eax, eax
or eax, 1
test eax, eax
je 0x4026f0
jmp 0x4026e4
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 0x40561a
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 0x402abe
mov ebx, dword [ebp - 0x87c]
jmp 0x402710
mov ecx, 3
int 0x29
mov eax, dword [ebp - 0x870]
mov edi, dword [ebp - 0x888]
mov dword [eax], 8
jmp 0x4027de
push edi
push 0
push dword [0x407378]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x40283c
push esi
push 0
push dword [0x407378]
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 0x402bca
mov eax, dword [ebp - 0x870]
mov dword [eax], esi
jmp 0x40283c
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 0x4056ab
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402abe
mov edi, dword [ebp - 0x874]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4056ca
cmp ecx, 0xffffffff
je 0x4056ca
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 0x402bf5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402930
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 0x402922
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x402900
cmp dword [0x407398], edi
je 0x40577a
mov eax, dword [0x40739c]
mov dword [ebp - 0x8a0], eax
test eax, eax
je 0x40577a
lea ecx, [ebp - 0x8a4]
push ecx
lea ecx, [ebp - 0x624]
push ecx
push esi
push 1
mov ecx, eax
call dword [0x408250]
call dword [ebp - 0x8a0]
test eax, eax
jns 0x40575d
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x405704
movzx edi, ax
jmp 0x402900
cmp dword [ebp - 0x8a4], edi
jne 0x402900
mov eax, dword [ebp - 0x870]
mov dword [eax], 5
jmp 0x4056f6
mov edi, 5
jmp 0x402900
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [ebp - 0x870]
mov dword [ecx], eax
jmp 0x402922
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 0x4029de
mov dword [ebx + 8], esi
jmp 0x40296c
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
jmp 0x40580b
cmp dword [0x407398], edi
je 0x4029de
mov ebx, dword [0x40739c]
test ebx, ebx
je 0x4029de
lea eax, [ebp - 0x898]
mov ecx, ebx
push eax
lea eax, [ebp - 0x624]
push eax
push esi
push 1
call dword [0x408250]
call ebx
mov ecx, eax
test ecx, ecx
jns 0x405818
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x40580b
movzx ecx, cx
test ecx, ecx
jne 0x4029de
jmp 0x4029d0
cmp dword [ebp - 0x898], edi
je 0x4029de
jmp 0x4029d0
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 0x402aa4
mov dword [ebx + 8], esi
jmp 0x402a32
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
jmp 0x40589d
cmp dword [0x407398], edi
je 0x402aa4
mov ebx, dword [0x40739c]
test ebx, ebx
je 0x402aa4
lea eax, [ebp - 0x89c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x82c]
push eax
push esi
push 1
call dword [0x408250]
call ebx
mov ecx, eax
test ecx, ecx
jns 0x4058aa
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x40589d
movzx ecx, cx
test ecx, ecx
jne 0x402aa4
jmp 0x402a96
cmp dword [ebp - 0x89c], edi
je 0x402aa4
jmp 0x402a96
mov ebx, dword [ebp - 0x878]
jmp 0x402abe
push esi
push 0
push dword [0x407378]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x402ad7
cmp ebx, 0xffffffff
je 0x402adf
push ebx
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_ReleaseActCtx]
jmp 0x402adf