Function at 0x401161
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov dword [ebp - 4], 0
push 0x405094
push 0x4050a8
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4011d4
push 0x100
lea eax, [ebp - 0x14c]
push eax
push 0xce
mov ecx, dword [0x4054f4]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
push 0x4050b4
lea edx, [ebp - 0x14c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x14c]
push eax
call sub.gds32.dll_Ordinal_42
add esp, 4
xor eax, eax
jmp 0x4013f3
mov ecx, dword [0x4054f4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 0x4050c8
mov dword [ebp - 0x28], 0x4013f7
mov dword [ebp - 0x2c], 0
push 0x65
mov edx, dword [0x4054f4]
push edx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x18], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
and eax, 0xffff
test eax, eax
jne 0x401282
push 0x100
lea ecx, [ebp - 0x24c]
push ecx
push 0xca
mov edx, dword [0x4054f4]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push 0x4050d4
lea eax, [ebp - 0x24c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4013f3
push 0
mov ecx, dword [0x4054f4]
push ecx
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x4a0000
push 0x4050e8
push str.IB_Guard
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov dword [0x4054f0], edx
push 0x405108
push 0
push 0x401b51
call sub.MSVCRT.dll__beginthread
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x401337
push 0x100
lea eax, [ebp - 0x34c]
push eax
push 0xd3
mov ecx, dword [0x4054f4]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push 0x405118
lea edx, [ebp - 0x34c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x34c]
push eax
call sub.gds32.dll_Ordinal_42
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x4013f3
xor edx, edx
mov dx, word [0x405030]
test edx, edx
jne 0x401361
push 0
push 6
push 0x111
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4013f0
cmp dword [0x4054f8], 0
je 0x4013d7
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x475
mov ecx, dword [0x4054f8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x350], eax
push 0
push 0
push 0x476
mov edx, dword [0x4054f8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x4013cc
mov eax, dword [0x4054f8]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4054f8], 0
cmp dword [ebp - 0x350], 0
je 0x4013d7
jmp 0x401361
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401361
mov eax, dword [ebp - 0x44]
mov esp, ebp
pop ebp
ret