Function at 0x649770
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6499d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x84cd00]
mov dword [ebp - 0x14], eax
mov edx, dword [ebx]
cmp edx, 0xffffffff
je 0x6499a8
test esi, esi
je 0x649969
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xb4]
push 0x40
push eax
push str.WX_CRASH_FLAGS
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x64981f
cmp eax, 0x40
jae 0x64981f
lea eax, [ebp - 0xb4]
lea edx, [ebp - 0x28]
add esp, 0xfffffff4
mov dword [esp], eax
mov dword [esp + 4], 0x7aa01c
mov dword [esp + 8], edx
call fcn.0074ce5e
add esp, 0xc
cmp eax, 1
cmove edi, dword [ebp - 0x28]
call fcn.0064b3a0
movzx eax, al
test eax, eax
je 0x649918
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], eax
test edi, 2
mov dword [ebp - 0x30], esi
je 0x649851
mov esi, 2
jmp 0x649861
mov eax, 1
mov esi, 0x50
and edi, 4
cmovne esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x34]
xor edx, edx
push edx
push edx
push ecx
push esi
push dword [ebx]
push eax
push edi
call dword [0x858324]
test eax, eax
jne 0x6498d4
add esp, 0xfffffff8
mov dword [esp + 4], str.MiniDumpWriteDump___failed.
mov dword [esp], ebx
call fcn.006499f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x6498b1
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0x14]
call fcn.007470f0
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x6498e9
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0x14]
call fcn.007470f0
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.0064b3d0
mov eax, dword [eax]
add esp, 0xfffffff8
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.006499f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x649946
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0x14]
call fcn.007470f0
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [0x854dd8]
test esi, esi
jne 0x6497ba
push str.Context_for_crash_report_generation_not_available.
push ebx
call fcn.006499f0
add esp, 8
mov ecx, dword [ebp - 0x14]
call fcn.007470f0
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x14]
call fcn.007470f0
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8