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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0xc]
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea edi, [esi + 0xc]
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [eax + 8]
mov dword [esp + 0x38], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp byte [esi + 0x114], bl
mov dword [esp + 0x3c], eax
jne 0x4dd1bf
cmp byte [esi + 0xe8], bl
jne 0x4dd220
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], eax
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x24], eax
add dword [esp + 0x2c], eax
cmp byte [esi + 0xe9], bl
jne 0x4dd2b6
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
push ebx
push 0x1000000
lea edx, [esp + 0x38]
push edx
push dword [esi + 0x78]
lea edx, [esp + 0x30]
push edx
push eax
call dword [ecx + 0x14]
cmp eax, ebx
mov dword [esi + 0x120], eax
jl 0x4dd3b2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x78]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x44]
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_GetDC]
push 0xcc0020
push ebx
push ebx
push dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push eax
push ebx
push ebx
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x78]
push dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
push dword [esp + 0x14]
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x438306
cmp byte [esi + 0xe9], bl
push 0x10
lea edx, [esp + 0x34]
push edx
push dword [esi + 0x78]
push dword [esp + 0x28]
push dword [esp + 0x28]
je 0x4dd23f
mov eax, dword [esi + 0x74]
jmp 0x4dd242
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
mov dword [esi + 0x120], eax
jge 0x438306
cmp eax, 0x887601ae
je 0x4dd296
cmp eax, 0x887601c2
je 0x4dd296
cmp eax, 0x80004001
jne 0x438306
mov ebx, dword [0x5ab9e4]
mov eax, dword [esi]
mov byte [esi + 0x114], 1
mov edi, dword [ebx]
mov ecx, esi
add edi, 0xd4
call dword [eax + 0x2c]
push eax
push str.DDraw_blt_failure.___s.__Forcing_GDI_blt._n
jmp 0x4dd3ff
mov ebx, dword [0x5ab9e4]
mov edi, dword [ebx]
mov eax, dword [esi]
mov ecx, esi
add edi, 0xd4
call dword [eax + 0x2c]
push eax
push str.Transient_ddraw_blt_failure.___s._n
jmp 0x4dd3ff
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x24]
sar edi, 1
add eax, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], edi
jmp 0x4dd2df
cmp eax, dword [esp + 0x2c]
jge 0x4dd2ec
cmp eax, ebx
jle 0x4dd2ec
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
cmp eax, dword [esp + 0x24]
jge 0x4dd2d5
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
push ebx
push 0x1000000
lea edx, [esp + 0x38]
push edx
push dword [esi + 0x78]
lea edx, [esp + 0x30]
push edx
push eax
call dword [ecx + 0x14]
cmp eax, ebx
mov dword [esi + 0x120], eax
jge 0x4dd374
cmp eax, 0x887601ae
je 0x4dd34b
cmp eax, 0x887601c2
je 0x4dd34b
mov eax, dword [0x5ab9e4]
mov byte [esi + 0x114], 1
mov ebx, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov ecx, esi
add ebx, 0xd4
call dword [eax + 0x2c]
push eax
push str.DDraw_blt_failed.__Forcing_GDI_blt._n___s___n
push dword [esp + 0x1c]
jmp 0x4dd36d
mov eax, dword [0x5ab9e4]
mov ebx, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov ecx, esi
add ebx, 0xd4
call dword [eax + 0x2c]
push eax
push str.DDrawDisplay::present___Blt_failed__s._n
push dword [esp + 0x1c]
call dword [ebx]
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
add dword [esp + 0x3c], edi
mov dword [esp + 0x34], eax
jmp 0x4dd3a0
cmp eax, dword [esp + 0x2c]
jge 0x4382dc
cmp eax, ebx
jle 0x4382dc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
cmp eax, dword [esp + 0x24]
jge 0x4dd38e
jmp 0x4382dc
cmp eax, 0x887601ae
je 0x4dd3e4
cmp eax, 0x887601c2
je 0x4dd3e4
mov ebx, dword [0x5ab9e4]
mov eax, dword [esi]
mov byte [esi + 0x114], 1
mov edi, dword [ebx]
mov ecx, esi
add edi, 0xd4
call dword [eax + 0x2c]
push eax
push str.DDraw_blt_failed.__Forcing_GDI_blt._n___s___n
jmp 0x4dd3ff
mov ebx, dword [0x5ab9e4]
mov edi, dword [ebx]
mov eax, dword [esi]
mov ecx, esi
add edi, 0xd4
call dword [eax + 0x2c]
push eax
push str.DDraw_blt_failed.__s._n
push ebx
call dword [edi]
add esp, 0xc
jmp 0x438306