Function at 0x40a1a0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x445040]
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 0x404b40
lea ecx, [ebp - 0x78]
call fcn.0040a800
push 4
call fcn.0043a504
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [eax], 0x405130
push ecx
push 0
push eax
push 0x40a8c0
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 0x40a7e8
push 0x404740
lea ecx, [ebp - 0x70]
call fcn.0040a800
push 0x404d80
lea ecx, [ebp - 0x68]
call fcn.0040a800
push 0x4043d0
lea ecx, [ebp - 0x60]
call fcn.0040a800
push 0x406510
lea ecx, [ebp - 0x58]
call fcn.0040a800
push 0x406300
lea ecx, [ebp - 0x50]
call fcn.0040a800
push 0x406da0
lea ecx, [ebp - 0x48]
call fcn.0040a800
push 0x407230
lea ecx, [ebp - 0x40]
call fcn.0040a800
push 0x407880
lea ecx, [ebp - 0x38]
call fcn.0040a800
push 0x4082f0
lea ecx, [ebp - 0x30]
call fcn.0040a800
push 0x408730
lea ecx, [ebp - 0x28]
call fcn.0040a800
push 0x404110
lea ecx, [ebp - 0x20]
call fcn.0040a800
push 0
mov dword [0x4459f0], 0x30
mov dword [0x4459f4], 0x40
mov dword [0x4459f8], 0x4096e0
mov dword [0x4459fc], 0
mov dword [0x445a00], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x445a04], eax
push 0x4459f0
movups xmmword [0x445a08], xmm0
mov dword [0x445a18], 0x442624
mov dword [0x445a1c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x445a04]
push 0
push 0
push 0x131
push 0x12c
push 0x64
push 0x64
push 0x80000000
push str.MyScript
push 0x442624
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x4459e8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4459e8]
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 [0x4459e4], ecx
test ecx, ecx
je 0x40a3f7
push 0x4459ec
push 0x445a20
push 0x40
push dword [0x4459e8]
xorps xmm0, xmm0
mov dword [0x445a34], 0
push 1
movlpd qword [0x445a20], xmm0
movlpd qword [0x445a2c], xmm0
mov dword [0x445a3c], 0
movlpd qword [0x445a4c], xmm0
mov dword [0x445a40], 1
mov dword [0x445a38], 1
mov dword [0x445a28], 0
mov dword [0x445a44], 1
mov dword [0x445a48], 0x50
mov dword [0x445a54], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.00409990
cmp byte [0x445098], 0
je 0x40a5c7
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 - 0xa0], 5
mov dword [ebp - 0x9c], 0
nop
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 1
push eax
call esi
test eax, eax
je 0x40a480
nop dword [eax]
lea eax, [ebp - 0x94]
push eax
call edi
lea eax, [ebp - 0x94]
push eax
call ebx
cmp dword [ebp - 0x90], 0x12
je 0x40a491
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x94]
push eax
call esi
test eax, eax
jne 0x40a450
mov eax, dword [0x4456c4]
test eax, eax
je 0x40a4a1
mov ecx, dword [eax + 0xc8]
jmp 0x40a4a3
cmp byte [0x445098], 0
sete byte [0x445098]
jmp 0x40a4cb
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x40a4c1
test eax, eax
je 0x40a4c1
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x40a4c1
cmp dword [eax], 0
je 0x40a4c1
call fcn.0042ef10
call fcn.0042f490
call fcn.0040f3e0
call fcn.00409c50
mov dword [ebp - 4], 2
call fcn.00411630
mov ecx, dword [0x4459ec]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4459ec]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4459ec]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4459ec]
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 [0x4459ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x40a57d
call fcn.004119c0
mov eax, dword [0x4456c4]
xor ecx, ecx
mov eax, dword [eax + 0x1d4c]
mov eax, dword [eax]
add eax, 0x34
cmp byte [eax], cl
cmovne ecx, eax
call fcn.0042e9e0
mov eax, dword [0x4459ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x4459ec]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x40a5af
mov eax, dword [0x4459ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x40a5af
call fcn.004098c0
lea ecx, [ebp - 0xa0]
call fcn.00409590
cmp byte [0x445098], 0
jne 0x40a430
mov dword [ebp - 4], 3
mov ecx, dword [0x4456c4]
test ecx, ecx
je 0x40a5e0
mov edi, dword [ecx + 0xc8]
jmp 0x40a5e2
xor edi, edi
lea ebx, [ecx + 8]
test ecx, ecx
je 0x40a653
mov esi, dword [ecx + 0xc8]
test esi, esi
je 0x40a653
cmp dword [esi], 0
je 0x40a653
mov edx, dword [esi + 4]
test edx, edx
je 0x40a612
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4456c4]
mov dword [esi + 4], 0
mov edx, dword [esi + 8]
test edx, edx
je 0x40a62c
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4456c4]
mov dword [esi + 8], 0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x40a653
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4456c4]
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x98]
mov dword [eax + 4], 0
mov edx, dword [edi]
test edx, edx
je 0x40a665
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4456c4]
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xc0], 0
test ecx, ecx
je 0x40a683
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 [0x4456c4]
add esp, 4
test eax, eax
je 0x40a6a0
mov esi, dword [eax + 0xc4]
jmp 0x40a6a2
xor esi, esi
mov ecx, dword [esi + 0x28]
lea ebx, [eax + 8]
test ecx, ecx
je 0x40a6b8
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4456c4]
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xbc], 0
test eax, eax
je 0x40a6d6
dec dword [eax + 0x36c]
push esi
call edi
mov esi, dword [0x4456c4]
add esp, 4
mov ecx, esi
call fcn.00410a60
cmp dword [0x4456c4], esi
jne 0x40a6fb
mov dword [0x4456c4], 0
test esi, esi
je 0x40a71b
mov ecx, esi
call fcn.0041ec30
mov eax, dword [0x4456c4]
test eax, eax
je 0x40a715
dec dword [eax + 0x36c]
push esi
call edi
add esp, 4
mov dword [ebp - 4], 4
mov ecx, dword [0x4459ec]
test ecx, ecx
je 0x40a73c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4459ec], 0
mov ecx, dword [0x4459e4]
test ecx, ecx
je 0x40a756
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4459e4], 0
push dword [0x4459e8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x445a04]
push dword [0x445a18]
call dword [sym.imp.USER32.dll_UnregisterClassA]
cmp dword [ebp - 0x1c], 0
jne 0x40a7e2
cmp dword [ebp - 0x24], 0
jne 0x40a7e2
cmp dword [ebp - 0x2c], 0
jne 0x40a7e2
cmp dword [ebp - 0x34], 0
jne 0x40a7e2
cmp dword [ebp - 0x3c], 0
jne 0x40a7e2
cmp dword [ebp - 0x44], 0
jne 0x40a7e2
cmp dword [ebp - 0x4c], 0
jne 0x40a7e2
cmp dword [ebp - 0x54], 0
jne 0x40a7e2
cmp dword [ebp - 0x5c], 0
jne 0x40a7e2
cmp dword [ebp - 0x64], 0
jne 0x40a7e2
cmp dword [ebp - 0x6c], 0
jne 0x40a7e2
cmp dword [ebp - 0x14], 0
jne 0x40a7e2
cmp dword [ebp - 0x74], 0
jne 0x40a7e2
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.0043a4f6
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