Function at 0x404000
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435b70
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x43f00c]
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 0x401c80
lea ecx, [ebp - 0x48]
call fcn.004045e0
push 4
call fcn.00434801
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [eax], 0x402260
push ecx
push 0
push eax
push 0x4046a0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4045ca
push 0x401a50
lea ecx, [ebp - 0x40]
call fcn.004045e0
push 0x401ec0
lea ecx, [ebp - 0x38]
call fcn.004045e0
push 0x4016f0
lea ecx, [ebp - 0x30]
call fcn.004045e0
push 0x4026a0
lea ecx, [ebp - 0x28]
call fcn.004045e0
push 0x402710
lea ecx, [ebp - 0x20]
call fcn.004045e0
push 0
mov dword [0x43f7ec], 0x30
mov dword [0x43f7f0], 0x40
mov dword [0x43f7f4], 0x402cc0
mov dword [0x43f7f8], 0
mov dword [0x43f7fc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x43f800], eax
push 0x43f7ec
movups xmmword [0x43f804], xmm0
mov dword [0x43f814], 0x43b5c8
mov dword [0x43f818], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x43f800]
push 0
push 0
push 0x131
push 0x12c
push 0x64
push 0x64
push 0x80000000
push str.MyScript
push str.class001
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x43f7e4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x43f7e4]
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 [0x43f7e0], ecx
test ecx, ecx
je 0x404206
push 0x43f7e8
push 0x43f81c
push 0x40
push dword [0x43f7e4]
xorps xmm0, xmm0
mov dword [0x43f830], 0
push 1
movlpd qword [0x43f81c], xmm0
movlpd qword [0x43f828], xmm0
mov dword [0x43f838], 0
movlpd qword [0x43f848], xmm0
mov dword [0x43f83c], 1
mov dword [0x43f834], 1
mov dword [0x43f824], 0
mov dword [0x43f840], 1
mov dword [0x43f844], 0x50
mov dword [0x43f850], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.00402f60
cmp byte [0x43f028], 0
je 0x4043b9
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [ebp - 0x70], 0x64
mov dword [ebp - 0x6c], 0
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 1
push eax
call esi
test eax, eax
je 0x404275
lea eax, [ebp - 0x64]
push eax
call edi
lea eax, [ebp - 0x64]
push eax
call ebx
cmp dword [ebp - 0x60], 0x12
je 0x404286
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call esi
test eax, eax
jne 0x404251
mov eax, dword [0x43f718]
test eax, eax
je 0x404296
mov ecx, dword [eax + 0xc8]
jmp 0x404298
cmp byte [0x43f028], 0
sete byte [0x43f028]
jmp 0x4042c0
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x4042b6
test eax, eax
je 0x4042b6
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x4042b6
cmp dword [eax], 0
je 0x4042b6
call fcn.00429040
call fcn.004295c0
call fcn.00409840
call fcn.00403220
mov dword [ebp - 4], 2
call fcn.0040bcf0
mov ecx, dword [0x43f7e8]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x43f7e8]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x43f7e8]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x43f7e8]
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 [0x43f7e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x404372
call fcn.0040c050
mov eax, dword [0x43f718]
xor ecx, ecx
mov eax, dword [eax + 0x1d4c]
mov eax, dword [eax]
add eax, 0x34
cmp byte [eax], cl
cmovne ecx, eax
call fcn.00428b00
mov eax, dword [0x43f7e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x43f7e8]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x4043a4
mov eax, dword [0x43f7e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x4043a4
call fcn.00402e90
lea ecx, [ebp - 0x70]
call fcn.00402b70
cmp byte [0x43f028], 0
jne 0x404238
mov dword [ebp - 4], 3
mov ecx, dword [0x43f718]
test ecx, ecx
je 0x4043d2
mov edi, dword [ecx + 0xc8]
jmp 0x4043d4
xor edi, edi
lea ebx, [ecx + 8]
test ecx, ecx
je 0x404445
mov esi, dword [ecx + 0xc8]
test esi, esi
je 0x404445
cmp dword [esi], 0
je 0x404445
mov edx, dword [esi + 4]
test edx, edx
je 0x404404
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x43f718]
mov dword [esi + 4], 0
mov edx, dword [esi + 8]
test edx, edx
je 0x40441e
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x43f718]
mov dword [esi + 8], 0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x404445
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x43f718]
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x98]
mov dword [eax + 4], 0
mov edx, dword [edi]
test edx, edx
je 0x404457
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x43f718]
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xc0], 0
test ecx, ecx
je 0x404475
dec dword [ecx + 0x36c]
push dword [0x43f710]
push edi
call fcn.00405e80
mov eax, dword [0x43f718]
add esp, 8
test eax, eax
je 0x404495
mov esi, dword [eax + 0xc4]
jmp 0x404497
xor esi, esi
mov ecx, dword [esi + 0x28]
lea edi, [eax + 8]
test ecx, ecx
je 0x4044ad
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x43f718]
mov dword [edi + 0xb4], 0
mov dword [edi + 0xbc], 0
test eax, eax
je 0x4044cb
dec dword [eax + 0x36c]
push dword [0x43f710]
push esi
call fcn.00405e80
mov esi, dword [0x43f718]
add esp, 8
mov ecx, esi
call fcn.0040af00
mov eax, dword [0x43f718]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
mov dword [0x43f718], eax
test esi, esi
je 0x404521
mov ecx, esi
call fcn.004190a0
mov eax, dword [0x43f718]
test eax, eax
je 0x404512
dec dword [eax + 0x36c]
push dword [0x43f710]
push esi
call fcn.00405e80
add esp, 8
mov dword [ebp - 4], 4
mov ecx, dword [0x43f7e8]
test ecx, ecx
je 0x404542
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x43f7e8], 0
mov ecx, dword [0x43f7e0]
test ecx, ecx
je 0x40455c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x43f7e0], 0
push dword [0x43f7e4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x43f800]
push dword [0x43f814]
call dword [sym.imp.USER32.dll_UnregisterClassA]
cmp dword [ebp - 0x1c], 0
jne 0x4045c4
cmp dword [ebp - 0x24], 0
jne 0x4045c4
cmp dword [ebp - 0x2c], 0
jne 0x4045c4
cmp dword [ebp - 0x34], 0
jne 0x4045c4
cmp dword [ebp - 0x3c], 0
jne 0x4045c4
cmp dword [ebp - 0x14], 0
jne 0x4045c4
cmp dword [ebp - 0x44], 0
jne 0x4045c4
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.004347f3
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 6
mov dword [ebp - 0x14], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3