Function at 0x409f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x120
push ebx
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 6
mov esi, str.Generic_Game_SDK_Window
lea edi, [esp + 0x98]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x130]
push 0x65
push ebx
mov dword [esp + 0xb8], 0x7c
mov dword [esp + 0x38], 8
mov dword [esp + 0x3c], 0x409100
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x98]
push ecx
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
push esi
push ebx
push ebx
push 0x1e0
push 0x280
push DirectSoundCreate
push DirectSoundCreate
push 0x90000000
lea edx, [esp + 0xbc]
push str.FrontLine
push edx
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x423250], eax
jne 0x40a067
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x120
ret 0x10
mov ecx, dword [esp + 0x13c]
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x423250]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x423250]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push ebx
call dword [sym.imp.USER32.dll_ShowCursor]
push ebx
push 0x41b328
push 0x42c9f8
push ebx
call sub.DDRAW.dll_DirectDrawCreateEx
mov eax, dword [0x42c9f8]
mov edx, dword [0x423250]
push 0x13
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [0x42c9f8]
push ebx
push ebx
push 8
mov ecx, dword [eax]
push 0x1e0
push 0x280
push eax
call dword [ecx + 0x54]
mov eax, dword [0x42c9f8]
push ebx
lea ecx, [esp + 0xb4]
mov dword [esp + 0xb8], 0x21
mov dword [esp + 0x11c], 0x218
mov dword [esp + 0xc8], 1
mov edx, dword [eax]
push 0x42c8dc
push ecx
push eax
call dword [edx + 0x18]
xor edx, edx
mov eax, dword [0x42c8dc]
mov dword [esp + 0x20], edx
mov esi, 4
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edx
push 0x423240
mov dword [esp + 0x30], edx
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0x30]
push ebx
push 0x421980
push ebx
call sub.DSOUND.dll_DirectSoundCreate
mov eax, dword [0x421980]
mov edx, dword [0x423250]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x74]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x421980]
mov dword [esp + 0x78], 0x24
mov dword [esp + 0x7c], 0xc1
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], ebx
mov ecx, dword [eax]
push 0x4231e8
lea edx, [esp + 0x7c]
push edx
push eax
call dword [ecx + 0xc]
xor eax, eax
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov word [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov word [esp + 0xe], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0xac44
mov dword [esp + 0x18], eax
mov word [esp + 0x18], si
mov word [esp + 0x1c], ax
mov eax, dword [0x4231e8]
mov dword [esp + 0x14], 0x2b110
mov word [esp + 0x1a], 0x10
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x38]
mov ecx, 0x28
xor eax, eax
mov edi, 0x423134
xor edx, edx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [0x423fd4], eax
mov dword [0x423200], ecx
mov dword [0x423fd8], eax
mov dword [0x423204], ecx
mov dword [0x423fdc], eax
mov dword [0x423208], ecx
mov dword [0x423fe0], eax
mov dword [0x42320c], ecx
mov edi, 0x423214
mov dword [0x423210], ecx
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov ecx, 0xa
mov edi, 0x423f88
rep stosd dword es:[edi], eax
mov ecx, 0xa
mov edi, 0x42c8e0
rep stosd dword es:[edi], eax
mov ecx, 0xa
mov edi, 0x421988
rep stosd dword es:[edi], eax
mov dword [0x42cd04], edx
mov ecx, 0xa
mov edi, 0x42c6c0
mov dword [0x42cd08], edx
rep stosd dword es:[edi], eax
mov dword [0x42cd0c], edx
mov ecx, 0x39
mov edi, 0x423050
mov dword [0x42cd10], edx
push str.dataClick.wav
push 0x42caf4
rep stosd dword es:[edi], eax
mov dword [0x423fe4], eax
mov dword [0x42cd14], edx
call fcn.00401040
add esp, 8
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x42cb00
push 0x41b2a8
push 3
push ebx
push 0x41b318
call esi
mov edx, dword [0x421980]
mov eax, dword [0x42cb00]
push ebx
push edx
mov ecx, dword [eax]
push 0x42cb04
push eax
call dword [ecx + 0xc]
push 0x42cb08
push 0x41b2b8
push 3
push ebx
push 0x41b2f8
call esi
mov eax, dword [0x42cb00]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
push str.data_tam_g01.mid
push 0x42cb0c
call fcn.00403240
mov eax, dword [0x42cb0c]
add esp, 8
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [edx + 0x18]
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call fcn.00413fc0
push eax
call fcn.00413dae
add esp, 4
call fcn.00409ce0
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
push ebx
lea eax, [esp + 0x64]
push ebx
push eax
call esi
test eax, eax
je 0x40a385
push ebx
push ebx
lea ecx, [esp + 0x60]
push ebx
push ecx
call edi
test eax, eax
je 0x40a38d
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40a350
call dword [0x42c9e0]
jmp 0x40a350
mov eax, dword [0x42cb00]
push ebx
push ebx
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x14]
mov ecx, dword [0x42cb00]
mov eax, dword [0x42cb0c]
push ecx
push ebx
mov edx, dword [eax]
push ebx
push 0xffffffffffffffff
push 0x41b2d8
push eax
call dword [edx + 0x4c]
mov eax, dword [0x42cb0c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x42cb00]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov eax, dword [0x42cb00]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x42cb08]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00412f40
call fcn.00402f40
call fcn.0040a690
call fcn.0040ec50
call fcn.00411b00
mov eax, dword [0x42c9f8]
push eax
mov edx, dword [eax]
call dword [edx + 0x4c]
mov eax, dword [0x42c8dc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x42c9f8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push 0x42caf4
call fcn.00401410
mov eax, dword [0x4231e8]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x421980]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
pop edi
pop esi
mov eax, dword [esp + 0x58]
pop ebx
add esp, 0x120
ret 0x10