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

Disassembly:
sub esp, 0x2c
push ebp
xor ebp, ebp
push esi
mov esi, ecx
cmp dword [esi + 0xcc], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
je 0x418639
cmp dword [esi + 0xac], ebp
je 0x418b1f
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x68]
push 0xcc0020
push eax
mov eax, dword [edx + 4]
mov edx, dword [esi + 0x8c]
push ecx
mov ecx, dword [esi + 0x90]
push ebp
push ebp
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
pop esi
pop ebp
add esp, 0x2c
ret 0xc
push edi
mov edi, dword [esi + 0xa0]
cmp edi, ebp
jne 0x418666
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ebp
push ebp
push ecx
push edx
push eax
lea ecx, [esi + 0x64]
call fcn.00414900
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 0xc
push ebx
cmp edi, ebp
je 0x418b1d
cmp byte [edi], 0
je 0x418b1d
mov al, byte [edi]
cmp al, 0x2c
je 0x41870b
cmp al, 0x69
je 0x41869a
cmp al, 0xf9
jne 0x418b10
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x18], ecx
jmp 0x418b10
mov edx, dword [esi + 0x8c]
cmp edx, dword [esi + 0x50]
jne 0x418b10
mov eax, dword [edi + 0x24]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi + 0x90]
mov ebx, eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x40]
push ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov ebp, dword [sym.imp.USER32.dll_FillRect]
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 4]
push eax
push edx
call ebp
mov ecx, dword [esi + 0x68]
mov edx, dword [ecx + 4]
push ebx
lea eax, [esp + 0x30]
push eax
push edx
call ebp
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xac], 1
jmp 0x418b0e
cmp dword [0x60e808], ebp
je 0x4187a5
mov eax, dword [edi + 0x40]
cmp eax, ebp
je 0x418746
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [edi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi + 0x40], ebp
mov eax, dword [edi + 0x38]
cmp eax, ebp
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
je 0x4187ab
mov edx, dword [esi + 0x40]
push ebp
push eax
mov eax, dword [edx + 4]
push eax
call ebx
mov ecx, dword [edi + 0x38]
mov edx, dword [esi + 8]
push ebp
push ecx
push edx
mov dword [esp + 0x2c], eax
call ebx
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x38]
push ebp
push eax
push edx
call ebx
mov ebp, dword [sym.imp.GDI32.dll_RealizePalette]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 4]
push ecx
call ebp
mov edx, dword [esi + 8]
push edx
call ebp
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
push ecx
call ebp
jmp 0x4187b1
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
mov ebp, dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x418817
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push eax
lea edx, [eax + 0x428]
push edx
push 4
push eax
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov edx, dword [edi + 0x3c]
push edx
mov dword [edi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
jne 0x418817
push 0xffffffffffffffff
push 0x40010
push 0x7d04
call fcn.0059026b
xor edi, edi
xor ebp, ebp
jmp 0x418667
mov eax, dword [edi + 0x34]
test eax, eax
je 0x418ab0
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [esi + 0x94]
mov ecx, dword [edi + 0xc]
mov ebx, dword [esi + 0x98]
imul ecx, ebp
mov dword [esp + 0x1c], eax
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [edi + 0x10]
sar edx, 5
imul ecx, ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [edi + 4]
imul edx, ebp
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov edx, dword [edi + 8]
imul edx, ebx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
je 0x4188b1
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, eax
jge 0x4188c3
add ebp, edx
mov dword [esp + 0x10], eax
mov edx, eax
cmp ecx, eax
jge 0x4188cf
add ebx, ecx
mov dword [esp + 0x14], eax
mov ecx, eax
mov eax, dword [esi + 0x8c]
add edx, ebp
cmp edx, eax
jle 0x4188e1
mov ebp, eax
sub ebp, dword [esp + 0x10]
mov edx, dword [esi + 0x90]
lea eax, [ebx + ecx]
cmp eax, edx
jle 0x4188f2
mov ebx, edx
sub ebx, ecx
cmp dword [esp + 0x18], 0
je 0x4189f2
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx + 4]
mov ecx, dword [esi + 0x8c]
push 0xcc0020
push 0
push ecx
push eax
push edx
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
jle 0x41898c
test ebx, ebx
jle 0x41898c
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push 0x8800c6
cdq
sub eax, edx
mov edx, dword [edi + 8]
push edx
mov edx, dword [esp + 0x18]
sar eax, 1
push eax
push 0
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 0x40]
push ebx
push ebp
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push 0xee0086
push edx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
push eax
mov eax, dword [esi + 8]
push 0
push 0
push eax
mov eax, dword [esi + 0x40]
push ebx
push ebp
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x8c]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call ebx
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 4]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x8c]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esi + 0x68]
push eax
mov eax, dword [edx + 4]
push ecx
push 0
push 0
push eax
jmp 0x418a85
test ebp, ebp
jle 0x418a24
test ebx, ebx
jle 0x418a24
mov eax, dword [edi + 8]
mov edx, dword [esi + 8]
push 0xcc0020
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push edx
push ebx
push ebp
push ecx
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x90]
mov eax, dword [esi + 0x8c]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebx
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x8c]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esi + 0x68]
push ecx
mov ecx, dword [eax + 4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esi + 0xac], 1
je 0x418aa4
mov edx, dword [esi + 8]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
mov ebp, dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [0x60e808], 0
je 0x418b06
cmp dword [edi + 0x38], 0
je 0x418b06
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 4]
push 0
push eax
push edx
call ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
call ebx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
push 0
push edx
push ecx
call ebx
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 4]
push eax
call ebp
mov ecx, dword [esi + 8]
push ecx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
push eax
call ebp
mov dword [esp + 0x14], 1
xor ebp, ebp
add edi, 0x44
cmp dword [esp + 0x14], ebp
je 0x418667
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 0xc