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

Disassembly:
sub esp, 0x4c
push esi
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x439118
mov ecx, dword [esi + 0x18]
push 2
push ecx
call fcn.00403bc0
test eax, eax
jne 0x439118
pop esi
add esp, 0x4c
ret 0xc
mov edx, dword [esi + 8]
push ebx
push ebp
push edi
push 1
push edx
call fcn.00438370
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x1c]
xor esi, esi
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x58], ebx
dec eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebp
jmp 0x439164
mov esi, dword [esp + 0x10]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
cmp eax, 6
ja case.default.0x43917b
jmp dword [eax*4 + 0x43948c]
mov eax, 0x66666667
push ebx
imul ebp
sar edx, 3
mov ecx, edx
mov eax, ebp
shr ecx, 0x1f
add edx, ecx
push ebp
imul edx, esi
sub eax, edx
push 0
push eax
call edi
mov esi, eax
jmp 0x4393e0
mov eax, 0x66666667
push ebx
imul ebp
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, esi
push edx
push 0
push 0
call edi
mov esi, eax
jmp 0x4393e0
mov eax, 0x66666667
imul ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, esi
push edx
push ebp
push 0
push 0
call edi
mov esi, eax
jmp 0x4393e0
mov eax, 0x66666667
push ebx
imul ebx
sar edx, 3
mov ecx, edx
mov eax, ebx
shr ecx, 0x1f
add edx, ecx
push ebp
imul edx, esi
sub eax, edx
push eax
push 0
call edi
mov esi, eax
jmp 0x4393e0
push 0
push 0
push 0
push 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], ebx
call edi
mov esi, eax
mov eax, 0x51eb851f
imul dword [esp + 0x18]
sar edx, 7
mov ecx, edx
mov eax, 0x66666667
shr ecx, 0x1f
add edx, ecx
xor ebx, ebx
mov dword [esp + 0x2c], edx
imul ebp
sar edx, 3
mov eax, edx
mov dword [esp + 0x24], 0x14
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], ebx
lea edx, [ebx + ecx]
mov dword [esp + 0x48], edx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 0
push 0
push 0
push 0
mov dword [esp + 0x78], eax
call edi
push 2
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
push ecx
push esi
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov edx, dword [esp + 0x68]
push edx
call esi
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
add ebx, ecx
dec eax
mov dword [esp + 0x24], eax
jne 0x439262
mov ebx, dword [esp + 0x58]
jmp 0x4393e0
push 0
push 0
push 0
push 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], ebp
call edi
mov esi, eax
mov eax, 0x51eb851f
imul dword [esp + 0x1c]
sar edx, 7
mov eax, edx
xor ebx, ebx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
mov dword [esp + 0x30], edx
imul dword [esp + 0x58]
sar edx, 3
mov ecx, edx
mov dword [esp + 0x24], 0x14
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x44], ebx
lea eax, [ebx + edx]
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 0
push 0
push 0
push 0
mov dword [esp + 0x78], eax
call edi
push 2
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
push edx
push esi
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [esp + 0x68]
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
add ebx, ecx
dec eax
mov dword [esp + 0x24], eax
jne 0x43931b
mov ebx, dword [esp + 0x58]
jmp 0x4393e0
mov eax, 0x66666667
imul ebx
sar edx, 4
mov ecx, edx
mov eax, ebx
shr ecx, 0x1f
add edx, ecx
mov esi, edx
cdq
imul esi, dword [esp + 0x10]
sub eax, edx
mov ecx, eax
mov eax, 0x66666667
imul ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebp
imul edx, dword [esp + 0x10]
mov dword [esp + 0x68], edx
cdq
sar ecx, 1
sub eax, edx
lea edx, [ecx + esi]
sub ecx, esi
push edx
mov edx, dword [esp + 0x6c]
sar eax, 1
add edx, eax
push edx
mov edx, dword [esp + 0x70]
sub eax, edx
push ecx
push eax
call edi
mov esi, eax
jmp 0x4393e0
xor esi, esi
mov eax, dword [esp + 0x20]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push 0xcc0020
push 0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x28]
push 0
mov edx, dword [ecx]
push edx
push ebx
push ebp
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test esi, esi
je 0x439418
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [esp + 0x34]
sub eax, esi
cmp eax, 0x19
jae 0x439436
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, esi
cmp eax, 0x19
jb 0x439429
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc eax
add esi, ebp
add edx, ebx
cmp eax, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
jl 0x439160
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 1
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
call fcn.004394b0
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x4c
ret 0xc