Function at 0x4035e0
Capabilities:
Create thread
Hide graphical window
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ec
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x2d8
push edi
push 0x4ebd48
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0x428690
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], 0x4973cc
call fcn.0045ed30
add esp, 0xc
lea eax, [esp + 0xf8]
push 0x104
push eax
call fcn.0045a648
lea eax, [esp + 0x100]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403656
sub eax, edx
push eax
lea ecx, [esp + 0xfc]
push ecx
mov ecx, 0x4ebd54
call fcn.00404090
push 1
push 0x4973d0
mov eax, 0x4ebd54
call fcn.00403fa0
push 0x104
lea edx, [esp + 0xfc]
push 0x4973d4
push edx
mov dword [0x4ebd90], edi
call fcn.0045a6ec
lea eax, [esp + 0x104]
add esp, 0xc
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4036b0
sub eax, ecx
push eax
lea eax, [esp + 0xfc]
push eax
mov ecx, 0x4ebd70
call fcn.00404090
push edi
lea ecx, [esp + 0x78]
push ecx
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x80]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x7c]
cdq
sub eax, edx
sar ecx, 1
lea edx, [ecx + 0x77]
push edx
sar eax, 1
lea edx, [eax + 0x9f]
push edx
add ecx, 0xffffff88
push ecx
add eax, 0xffffff60
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x100
push edi
push 0x80ca0000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x65
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push edi
push esi
push edi
push edi
sub ecx, eax
add ecx, 1
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
add edx, 1
push edx
push eax
push ecx
push 0x80ca0000
push str.Loading...
push 0x4973cc
push 0x100
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 5
push eax
mov dword [0x4ebd48], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4ebd48]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0x2010
push edi
push edi
push edi
push str.GAME.BMP
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_LoadImageA]
lea ecx, [esp + 0xa0]
push ecx
mov esi, eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x4ebd48]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [0x4ebd48]
lea eax, [esp + 0xb8]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edx, dword [esp + 0xa8]
push 0xcc0020
push edx
mov ebx, eax
mov eax, dword [esp + 0xac]
push eax
push 0
push 0
push edi
push pe_nt_image_headers32
push 0x140
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [0x4ebd48]
lea ecx, [esp + 0xb8]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4ebd48]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x4ee088
xor ebx, ebx
push ebx
xor edi, edi
push 0x42c690
mov dword [esp + 0x1c], edi
call fcn.00459fa7
mov esi, 0x10
add esp, 0xc
cmp dword [0x4ebd6c], esi
mov dword [0x4ee120], eax
mov eax, dword [0x4ebd58]
jae 0x40388d
mov eax, 0x4ebd58
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.0042c080
test al, al
je 0x403c32
cmp dword [0x4ee088], ebx
je 0x4038b7
lea ecx, [esp + 0x10]
push ecx
call fcn.0042c440
mov edi, dword [esp + 0x10]
cmp dword [0x4ebd6c], esi
mov eax, dword [0x4ebd58]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
jae 0x4038ed
mov eax, 0x4ebd58
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, edi
call fcn.004287b0
mov eax, dword [0x4edfdc]
add esp, 8
cmp dword [eax + 0x1e7c], esi
jb 0x403912
mov eax, dword [eax + 0x1e68]
jmp 0x403917
add eax, 0x1e68
push eax
mov eax, dword [0x4ebd48]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebp + 8]
mov ecx, dword [0x4ebd48]
mov eax, 0x4a2958
call fcn.00401200
mov esi, 0x4a2958
call fcn.00402e40
mov eax, dword [0x4edfdc]
mov dword [0x4ebac0], 0x3c
mov ecx, dword [eax + 0x1f70]
add ecx, 1
mov esi, 1
cmp ecx, esi
jge 0x403966
mov ecx, esi
jmp 0x403970
cmp ecx, 4
jle 0x403970
mov ecx, 4
mov edx, dword [0x4ebb8c]
cmp edx, ebx
je 0x40398e
cmp edx, esi
jge 0x403982
mov ecx, esi
jmp 0x40398e
cmp edx, 4
mov ecx, 4
jg 0x40398e
mov ecx, edx
xor edx, edx
cmp dword [0x4ebb60], ebx
setne dl
mov dword [0x4ebdcc], edx
mov edx, dword [eax + 0x1f68]
mov dword [0x4ebdd0], edx
mov edx, dword [eax + 0x1f6c]
mov dword [0x4ebdd4], edx
mov edx, dword [eax + 0x1f68]
imul edx, ecx
mov dword [0x4ebdd8], edx
mov edx, dword [eax + 0x1f6c]
imul edx, ecx
mov dword [0x4ebddc], edx
mov ecx, dword [eax + 0x1f6c]
mov eax, dword [eax + 0x1f68]
mov dword [0x4ebd0c], ebx
mov dword [0x4ebd10], ebx
mov dword [0x4ebd14], eax
mov dword [0x4ebd18], ecx
mov dword [0x4ec00c], esi
mov dword [0x4ec010], esi
call fcn.00449350
test eax, eax
je 0x403a29
mov eax, dword [0x4ebd48]
push ebx
push str.Error
push str.wuvorbis.dll_not_found.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403bdf
call dword [0x4ee06c]
push eax
call dword [0x4ee068]
add esp, 4
mov ebx, 0x4a2958
call fcn.00401480
test eax, eax
jne 0x403a64
mov ecx, dword [0x4ebd48]
push eax
push str.Error
push str.DIRECTX9_initialize_failed.
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403bdd
cmp dword [0x4ebd6c], 0x10
mov eax, dword [0x4ebd58]
jae 0x403a77
mov eax, 0x4ebd58
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00428930
push edi
call fcn.0045a194
xor ebx, ebx
add esp, 4
mov dword [esp + 0x10], ebx
call fcn.00403c50
mov dword [0x4ebd8c], esi
mov dword [0x4ec00c], ebx
call fcn.00428430
call fcn.00428430
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x94]
push edx
call edi
test eax, eax
je 0x403afc
push ebx
push ebx
push ebx
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x403bc4
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x403ab3
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x4ebabe]
test al, al
je 0x403b27
mov dword [0x4ebac0], 0x3c
mov esi, 0x4a2958
mov byte [0x4ebabe], bl
call fcn.00401ed0
mov eax, dword [0x4e51d0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
cmp eax, 0x88760869
jg 0x403b8e
je 0x403b67
cmp eax, 0x88760827
je 0x403b5b
cmp eax, 0x88760868
jne 0x403ab3
push ebx
call dword [sym.imp.USER32.dll_ClipCursor]
jmp 0x403ab3
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x403ab3
mov esi, 0x4a2958
call fcn.00401ed0
test eax, eax
je 0x403ab3
mov dword [0x4ebac0], 0x3c
mov byte [0x4ebabe], bl
jmp 0x403ab3
cmp eax, ebx
jne 0x403ab3
cmp dword [0x4ebac0], ebx
jne 0x403ba8
call fcn.004299f0
jmp 0x403ab3
sub dword [0x4ebac0], 1
jne 0x403ab3
call fcn.00403c50
call fcn.00428430
jmp 0x403ab3
call fcn.00429ee0
cmp dword [0x4ec010], ebx
jne 0x403bd9
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov esi, 0x4a2958
mov dword [0x4ebd8c], ebx
call fcn.00401ce0
call fcn.0042c1e0
call fcn.0042bf00
call fcn.00449750
mov ecx, dword [0x4ebd48]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [ebp + 8]
push edx
push 0x4973cc
call dword [sym.imp.USER32.dll_UnregisterClassA]
cmp edi, ebx
je 0x403c27
push edi
call fcn.0045a194
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4ebd48]
push ebx
push str.Error
push str.Initialize_failed.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403bdf