Function at 0x4037d0
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4304c0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [0x438648], 0x30
mov dword [0x43864c], 0x40
mov dword [0x438650], 0x401000
mov dword [0x438654], 0
mov dword [0x438658], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x43865c], eax
push 0x438648
movups xmmword [0x438660], xmm0
mov dword [0x438670], 0x431300
mov dword [0x438674], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x43865c]
push 0
push 0
push 0x78
push 0xa2
push 0x64
push 0x64
push 0x80000000
push str.CrackME_ALPHA
push str.class001
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x438640], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x438640]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x20
mov dword [ebp - 4], 0
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x43863c], ecx
test ecx, ecx
je 0x403951
push 0x438644
push 0x438678
push 0x40
push dword [0x438640]
xorps xmm0, xmm0
mov dword [0x43868c], 0
push 1
movlpd qword [0x438678], xmm0
movlpd qword [0x438684], xmm0
mov dword [0x438694], 0
movlpd qword [0x4386a4], xmm0
mov dword [0x438698], 1
mov dword [0x438690], 1
mov dword [0x438680], 0
mov dword [0x43869c], 1
mov dword [0x4386a0], 0x50
mov dword [0x4386ac], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b0
push 0x403730
lea ecx, [ebp - 0x38]
mov dword [0x4386b4], 0x3e8
mov byte [0x4386b3], 1
mov byte [0x4386b1], 1
mov byte [0x4386b2], 1
mov byte [0x4386b0], 0
call fcn.00403df0
mov esi, eax
cmp dword [esi + 4], 0
je 0x403dde
push dword [esi + 4]
mov edi, dword [sym.imp.MSVCP140.dll__Thrd_detach]
push dword [esi]
call edi
add esp, 8
test eax, eax
jne 0x403dde
mov dword [esi], eax
mov dword [esi + 4], eax
cmp dword [ebp - 0x34], eax
je 0x4039c4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 0x403710
lea ecx, [ebp - 0x38]
call fcn.00403df0
mov esi, eax
cmp dword [esi + 4], 0
je 0x403dde
push dword [esi + 4]
push dword [esi]
call edi
add esp, 8
test eax, eax
jne 0x403dde
mov dword [esi], eax
mov dword [esi + 4], eax
cmp dword [ebp - 0x34], eax
je 0x4039ff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x403a11
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.00402410
cmp byte [0x43809c], 0
je 0x403c11
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
call esi
test eax, eax
je 0x403a74
nop
lea eax, [ebp - 0x2c]
push eax
call edi
lea eax, [ebp - 0x2c]
push eax
call ebx
cmp dword [ebp - 0x28], 0x12
je 0x403a85
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
jne 0x403a50
mov eax, dword [0x4386c0]
test eax, eax
je 0x403a95
mov ecx, dword [eax + 0xc8]
jmp 0x403a97
cmp byte [0x43809c], 0
sete byte [0x43809c]
jmp 0x403abf
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x403ab5
test eax, eax
je 0x403ab5
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x403ab5
cmp dword [eax], 0
je 0x403ab5
call fcn.004277d0
call fcn.00427d50
call fcn.00408a40
call fcn.00401570
mov dword [ebp - 4], 2
call fcn.0040ac90
mov ecx, dword [0x438644]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x438644]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x438644]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x438644]
push 0
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
push 0xff000000
push 3
push 0
push 0
push ecx
call dword [eax + 0xac]
mov eax, dword [0x438644]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x403b71
call fcn.0040b020
mov eax, dword [0x4386c0]
xor ecx, ecx
mov eax, dword [eax + 0x1d4c]
mov eax, dword [eax]
add eax, 0x34
cmp byte [eax], cl
cmovne ecx, eax
call fcn.004272a0
mov eax, dword [0x438644]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x438644]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x403ba3
mov eax, dword [0x438644]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x403ba3
call fcn.004011e0
lea ecx, [ebp - 0x38]
call fcn.00402220
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
cmp edx, 0xffb3b4bf
jne 0x403bc1
cmp ecx, 0x7fffffff
je 0x403bee
cmp ecx, 0x7fffffff
jg 0x403bd7
jl 0x403bd3
cmp edx, 0xffb3b4bf
jae 0x403bd7
or al, 0xff
jmp 0x403bd9
mov al, 1
test al, al
jns 0x403bee
add edx, 0x4c4b40
mov dword [ebp - 0x40], edx
adc ecx, 0
mov dword [ebp - 0x3c], ecx
jmp 0x403bfc
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], 0x7fffffff
lea ecx, [ebp - 0x40]
call fcn.00403e90
cmp byte [0x43809c], 0
jne 0x403a35
mov dword [ebp - 4], 3
mov ecx, dword [0x4386c0]
test ecx, ecx
je 0x403c2a
mov edi, dword [ecx + 0xc8]
jmp 0x403c2c
xor edi, edi
lea ebx, [ecx + 8]
test ecx, ecx
je 0x403c9d
mov esi, dword [ecx + 0xc8]
test esi, esi
je 0x403c9d
cmp dword [esi], 0
je 0x403c9d
mov edx, dword [esi + 4]
test edx, edx
je 0x403c5c
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4386c0]
mov dword [esi + 4], 0
mov edx, dword [esi + 8]
test edx, edx
je 0x403c76
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4386c0]
mov dword [esi + 8], 0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x403c9d
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4386c0]
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x98]
mov dword [eax + 4], 0
mov edx, dword [edi]
test edx, edx
je 0x403caf
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4386c0]
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xc0], 0
test ecx, ecx
je 0x403ccd
dec dword [ecx + 0x36c]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
mov eax, dword [0x4386c0]
add esp, 4
test eax, eax
je 0x403cea
mov esi, dword [eax + 0xc4]
jmp 0x403cec
xor esi, esi
mov ecx, dword [esi + 0x28]
lea ebx, [eax + 8]
test ecx, ecx
je 0x403d02
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4386c0]
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xbc], 0
test eax, eax
je 0x403d20
dec dword [eax + 0x36c]
push esi
call edi
mov esi, dword [0x4386c0]
add esp, 4
mov ecx, esi
call fcn.0040a0c0
cmp dword [0x4386c0], esi
jne 0x403d45
mov dword [0x4386c0], 0
test esi, esi
je 0x403d65
mov ecx, esi
call fcn.004176b0
mov eax, dword [0x4386c0]
test eax, eax
je 0x403d5f
dec dword [eax + 0x36c]
push esi
call edi
add esp, 4
mov dword [ebp - 4], 4
mov ecx, dword [0x438644]
test ecx, ecx
je 0x403d86
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x438644], 0
mov ecx, dword [0x43863c]
test ecx, ecx
je 0x403da0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x43863c], 0
push dword [0x438640]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x43865c]
push dword [0x438670]
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f151
mov esp, ebp
pop ebp
ret 0x10
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3