Function at 0x433f90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45bf29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x47b258]
xor eax, dword [esp + 0x144]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.Starting.
push str.UveDraw::UveDraw
xor ebp, ebp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._s__:__s
mov dword [esp + 0x154], eax
mov dword [esi], fcn.0042eab0
mov dword [esi + 4], ebp
mov byte [esi + 8], 0
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov byte [esi + 0x20], 0
call fcn.00402330
mov eax, dword [0x47c170]
mov ecx, dword [eax + 4]
push ecx
call fcn.0041fde0
add esp, 0x10
mov ecx, esi
mov dword [esi + 0xc], 0x280
call fcn.0042eab0
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
push str.._ChickenInvaders2Xmas.cfg
push 0x280
mov edi, eax
mov edx, dword [edi]
push str.width
push edx
call ebx
mov dword [esi + 0xc], eax
call fcn.0044bd3a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
push eax
lea ecx, [esp + 0x14]
push 0x45dd4c
push ecx
mov dword [esp + 0x15c], ebp
call fcn.0041af90
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
mov ebp, dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
add esp, 0xc
push str.._ChickenInvaders2Xmas.cfg
push edx
push str.width
push eax
call ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x150], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4340b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.._ChickenInvaders2Xmas.cfg
push 0x1e0
mov dword [esi + 0x10], 0x1e0
mov eax, dword [edi]
push str.height
push eax
call ebx
mov dword [esi + 0x10], eax
call fcn.0044bd3a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x14]
push 0x45dd4c
push ecx
mov dword [esp + 0x15c], 1
call fcn.0041af90
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
add esp, 0xc
push str.._ChickenInvaders2Xmas.cfg
push edx
push str.height
push eax
call ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x150], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434141
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.._ChickenInvaders2Xmas.cfg
push 0x10
mov dword [esi + 0x14], 0x10
mov eax, dword [edi]
push 0x46ddd8
push eax
call ebx
mov dword [esi + 0x14], eax
call fcn.0044bd3a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esp + 0x14]
push 0x45dd4c
push ecx
mov dword [esp + 0x15c], 2
call fcn.0041af90
mov ebx, dword [esp + 0x1c]
mov edx, dword [edi]
add esp, 0xc
push str.._ChickenInvaders2Xmas.cfg
push ebx
push 0x46ddd8
push edx
call ebp
lea eax, [ebx - 0x10]
mov dword [esp + 0x150], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4341c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
push str.._ChickenInvaders2Xmas.cfg
push 0x100
lea eax, [esp + 0x4c]
push eax
push 0x45d66d
mov byte [esi + 8], 1
mov ecx, dword [edi]
push str.bFullScreen
push ecx
call ebx
test eax, eax
jle 0x434200
cmp byte [esp + 0x44], 0x59
sete dl
mov byte [esi + 8], dl
mov al, byte [esi + 8]
test al, al
mov eax, 0x468f0c
jne 0x434211
mov eax, 0x468f08
push str.._ChickenInvaders2Xmas.cfg
push eax
mov eax, dword [edi]
push str.bFullScreen
push eax
call ebp
push str.._ChickenInvaders2Xmas.cfg
push 0x100
lea ecx, [esp + 0x4c]
push ecx
push 0x45d66d
mov byte [esi + 0x20], 1
mov edx, dword [edi]
push str.bUseVSync
push edx
call ebx
test eax, eax
jle 0x434252
cmp byte [esp + 0x44], 0x59
sete al
mov byte [esi + 0x20], al
mov al, byte [esi + 0x20]
test al, al
mov eax, 0x468f0c
jne 0x434263
mov eax, 0x468f08
mov ecx, dword [edi]
push str.._ChickenInvaders2Xmas.cfg
push eax
push str.bUseVSync
push ecx
call ebp
mov edx, dword [0x47c170]
mov dword [edx + 0x14], esi
mov dword [esp + 0x18], 0x2c
call fcn.0045673c
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.user32.dll_GetWindowPlacement]
mov ecx, dword [esi + 0xc]
mov ebp, dword [esp + 0x34]
mov edx, dword [esi + 0x10]
mov ebx, dword [esp + 0x38]
add ecx, ebp
add edx, ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call fcn.0045673c
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1c]
push 0
call fcn.0044c58c
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.user32.dll_AdjustWindowRect]
call fcn.0045673c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
push 1
sub edx, ecx
push edx
mov edx, dword [esp + 0x3c]
sub edi, edx
push edi
push ecx
push edx
mov ecx, eax
call fcn.0044c60b
push 0
push 0x46f318
lea edi, [esi + 4]
push edi
push 0
call sub.ddraw.dll_DirectDrawCreateEx
test eax, eax
jge 0x43439d
mov ecx, dword [0x47c170]
mov ecx, dword [ecx + 0x10]
push 0xa7
push str.engineUveDraw.cpp
push str.UveDraw::UveDraw
push str.DirectDrawCreateEx_NULL___LPVOID_dxDraw__IID_IDirectDraw7__NULL_
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040f8c0
mov edx, dword [eax]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov dword [esp + 0x16c], 3
call fcn.00402330
mov eax, dword [0x47c170]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413050
mov eax, dword [esp + 0x2c]
or ebp, 0xffffffff
add eax, 0xfffffff0
add esp, 0x1c
mov dword [esp + 0x150], ebp
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4343a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4343a0
or ebp, 0xffffffff
mov ecx, esi
call fcn.0042efa0
push 7
push esi
push 0x42eee0
call sub.ddraw.dll_DirectDrawEnumerateExA
test eax, eax
jge 0x434434
mov ecx, dword [0x47c170]
mov ecx, dword [ecx + 0x10]
push 0xae
push str.engineUveDraw.cpp
push str.UveDraw::UveDraw
push str.DirectDrawEnumerateEx_UveDraw::enumerateCallback_this__DDENUM_ATTACHEDSECONDARYDEVICES_DDENUM_DETACHEDSECONDARYDEVICES__DDENUM_NONDISPLAYDEVICES__
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040f8c0
mov edx, dword [eax]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov dword [esp + 0x16c], 4
call fcn.00402330
mov eax, dword [0x47c170]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413050
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x1c
mov dword [esp + 0x150], ebp
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x434434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.0045673c
mov bl, byte [esi + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x1c]
mov ecx, dword [edi]
mov edx, dword [ecx]
neg bl
sbb ebx, ebx
and ebx, 9
add ebx, 8
push ebx
push eax
push ecx
call dword [edx + 0x50]
test eax, eax
jge 0x4344da
mov edx, dword [0x47c170]
push 0xb2
push str.engineUveDraw.cpp
push str.UveDraw::UveDraw
push str.dxDraw__SetCooperativeLevel_FASTWINDOWHANDLE___bFullScreen____DDSCL_EXCLUSIVE__DDSCL_FULLSCREEN__:__DDSCL_NORMAL___
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edx + 0x10]
call fcn.0040f8c0
mov eax, dword [eax]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov dword [esp + 0x16c], 5
call fcn.00402330
mov ecx, dword [0x47c170]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00413050
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x1c
mov dword [esp + 0x150], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4344da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esi + 8]
test al, al
je 0x43457d
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov edi, dword [edi]
mov eax, dword [edi]
push 0
push 0
push ecx
mov ecx, dword [esi + 0xc]
push edx
push ecx
push edi
call dword [eax + 0x54]
test eax, eax
jge 0x43457d
push 0xb6
push str.engineUveDraw.cpp
push str.UveDraw::UveDraw
push str.dxDraw__SetDisplayMode_width_height_bpp_0__0__
push eax
mov eax, dword [0x47c170]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x28]
push edx
call fcn.0040f8c0
mov ecx, dword [eax]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov dword [esp + 0x16c], 6
call fcn.00402330
mov edx, dword [0x47c170]
mov eax, dword [edx + 0x10]
push eax
call fcn.00413050
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x1c
mov dword [esp + 0x150], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43457d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x40
call fcn.0044bba8
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x150], 7
je 0x4345a3
mov ecx, eax
call fcn.0042c130
jmp 0x4345a5
xor eax, eax
push 0x40
mov dword [esp + 0x154], ebp
mov dword [esi + 0x18], eax
call fcn.0044bba8
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x150], 8
je 0x4345d5
mov ecx, eax
call fcn.0042c130
jmp 0x4345d7
xor eax, eax
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x150], ebp
mov dword [esi + 0x1c], eax
call fcn.0042c690
mov ecx, dword [esi + 0x1c]
call fcn.0042c820
push str.Started.
push str.UveDraw::UveDraw
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._s__:__s
call fcn.00402330
mov eax, dword [0x47c170]
mov ecx, dword [eax + 4]
push ecx
call fcn.0041fde0
mov ecx, dword [esp + 0x158]
add esp, 0x10
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
xor ecx, dword [esp + 0x14c]
pop ebp
pop ebx
add esp, 0x144
jmp fcn.0043eeae