Function at 0x42b8b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4587e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x476a54]
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.00426370
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.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 4]
push ecx
call fcn.00419450
add esp, 0x10
mov ecx, esi
mov dword [esi + 0xc], 0x280
call fcn.00426370
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str.._ChickenInvaders2.cfg
push 0x280
mov edi, eax
mov edx, dword [edi]
push str.width
push edx
call ebx
mov dword [esi + 0xc], eax
call fcn.0044922a
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 0x45af18
push ecx
mov dword [esp + 0x15c], ebp
call fcn.00414f70
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push str.._ChickenInvaders2.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 0x42b9d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.._ChickenInvaders2.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.0044922a
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 0x45af18
push ecx
mov dword [esp + 0x15c], 1
call fcn.00414f70
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
add esp, 0xc
push str.._ChickenInvaders2.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 0x42ba61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.._ChickenInvaders2.cfg
push 0x10
mov dword [esi + 0x14], 0x10
mov eax, dword [edi]
push 0x469668
push eax
call ebx
mov dword [esi + 0x14], eax
call fcn.0044922a
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 0x45af18
push ecx
mov dword [esp + 0x15c], 2
call fcn.00414f70
mov ebx, dword [esp + 0x1c]
mov edx, dword [edi]
add esp, 0xc
push str.._ChickenInvaders2.cfg
push ebx
push 0x469668
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 0x42bae9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.._ChickenInvaders2.cfg
push pe_nt_image_headers32
lea eax, [esp + 0x4c]
push eax
push 0x45a67d
mov byte [esi + 8], 1
mov ecx, dword [edi]
push str.bFullScreen
push ecx
call ebx
test eax, eax
jle 0x42bb20
cmp byte [esp + 0x44], 0x59
sete dl
mov byte [esi + 8], dl
mov al, byte [esi + 8]
test al, al
mov eax, 0x4683f4
jne 0x42bb31
mov eax, 0x4683f0
push str.._ChickenInvaders2.cfg
push eax
mov eax, dword [edi]
push str.bFullScreen
push eax
call ebp
push str.._ChickenInvaders2.cfg
push pe_nt_image_headers32
lea ecx, [esp + 0x4c]
push ecx
push 0x45a67d
mov byte [esi + 0x20], 1
mov edx, dword [edi]
push str.bUseVSync
push edx
call ebx
test eax, eax
jle 0x42bb72
cmp byte [esp + 0x44], 0x59
sete al
mov byte [esi + 0x20], al
mov al, byte [esi + 0x20]
test al, al
mov eax, 0x4683f4
jne 0x42bb83
mov eax, 0x4683f0
mov ecx, dword [edi]
push str.._ChickenInvaders2.cfg
push eax
push str.bUseVSync
push ecx
call ebp
mov edx, dword [0x477970]
mov dword [edx + 0x14], esi
mov dword [esp + 0x18], 0x2c
call fcn.004537d5
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.004537d5
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1c]
push 0
call fcn.00449a7c
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
call fcn.004537d5
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.00449afb
push 0
push 0x46b380
lea edi, [esi + 4]
push edi
push 0
call sub.DDRAW.dll_DirectDrawCreateEx
test eax, eax
jge 0x42bcbd
mov ecx, dword [0x477970]
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.0040f980
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.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413110
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 0x42bcc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x42bcc0
or ebp, 0xffffffff
mov ecx, esi
call fcn.004268c0
push 7
push esi
push 0x426800
call sub.DDRAW.dll_DirectDrawEnumerateExA
test eax, eax
jge 0x42bd54
mov ecx, dword [0x477970]
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.0040f980
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.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413110
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 0x42bd54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004537d5
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 0x42bdfa
mov edx, dword [0x477970]
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.0040f980
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.004022f0
mov ecx, dword [0x477970]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00413110
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 0x42bdfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esi + 8]
test al, al
je 0x42be9d
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 0x42be9d
push 0xb6
push str.engineUveDraw.cpp
push str.UveDraw::UveDraw
push str.dxDraw__SetDisplayMode_width_height_bpp_0__0__
push eax
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x28]
push edx
call fcn.0040f980
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.004022f0
mov edx, dword [0x477970]
mov eax, dword [edx + 0x10]
push eax
call fcn.00413110
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 0x42be9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x40
call fcn.00449098
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x150], 7
je 0x42bec3
mov ecx, eax
call fcn.004239f0
jmp 0x42bec5
xor eax, eax
push 0x40
mov dword [esp + 0x154], ebp
mov dword [esi + 0x18], eax
call fcn.00449098
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x150], 8
je 0x42bef5
mov ecx, eax
call fcn.004239f0
jmp 0x42bef7
xor eax, eax
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x150], ebp
mov dword [esi + 0x1c], eax
call fcn.00423f50
mov ecx, dword [esi + 0x1c]
call fcn.004240e0
push str.Started.
push str.UveDraw::UveDraw
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._s__:__s
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 4]
push ecx
call fcn.00419450
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.0043c4b6