Function at 0x402760
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ac
call sub.ntdll.dll__chkstk
mov dword [ebp - 4], str.The_condition__s_failed_at_the_following_location:_r_n_r_n_s__s___s__line__lu_
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp + 4]
push ecx
push 6
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
mov byte [ebp - 0x285], al
movzx edx, byte [ebp - 0x285]
test edx, edx
jne 0x40279a
jmp 0x4027eb
push 0x104
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x2a8]
push ecx
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
jbe 0x4027eb
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakePrettyW]
jmp 0x402801
push str._unknown_
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00402bc0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x284]
push eax
call fcn.00402c10
add esp, 0x1c
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jge 0x40283c
jmp 0x40289d
mov eax, dword [ebp - 0x284]
shl eax, 1
call sub.ntdll.dll__alloca_probe_16
mov dword [ebp - 0x2ac], esp
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x284]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00401740
add esp, 0x20
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jl 0x40289d
jmp 0x4028a7
mov dword [ebp - 0x21c], str.A_secondary_error_occurred_while_processing_this_error.
mov dword [ebp - 0x2a4], 6
mov dword [ebp - 0x29c], 4
mov dword [ebp - 0x294], 8
mov dword [ebp - 0x2a0], str.Break
mov dword [ebp - 0x298], str.Continue
mov dword [ebp - 0x290], str.Quit
push 0x60
push 0
lea ecx, [ebp - 0x280]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x280], 0x60
mov edx, dword [0x406654]
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x274], 0x1040
mov eax, dword [0x405c2c]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], 0xfffe
mov dword [ebp - 0x264], str.Assertion_failure
mov dword [ebp - 0x260], str.Select_Break_to_enter_the_debugger__Continue_to_ignore_the_error__or_Quit_to_exit_the_program.
mov dword [ebp - 0x25c], 3
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 6
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x240], edx
push 0
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x280]
push ecx
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jl 0x4029c1
cmp dword [ebp - 0x218], 8
jne 0x4029a5
push 0
call dword [sym.imp.kernelbase.dll_ExitProcess]
cmp dword [ebp - 0x218], 6
jne 0x4029b4
mov al, 1
jmp 0x4029c4
cmp dword [ebp - 0x218], 4
jne 0x4029c1
xor al, al
jmp 0x4029c4
int3
lea esp, [ebp - 0x2ac]
mov esp, ebp
pop ebp
ret