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

Disassembly:
push 0xffffffffffffffff
push 0x47885e
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
mov edi, ecx
xor esi, esi
mov dword [esp + 0x24], vtable.CGdiObject.0
mov dword [esp + 0x28], esi
mov dword [esp + 0xa4], esi
mov ebx, vtable.CBitmap.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0xa4], 1
lea ecx, [esp + 0x5c]
call fcn.0043add7
mov byte [esp + 0xa4], 2
lea ecx, [esp + 0x4c]
call fcn.0043add7
mov byte [esp + 0xa4], 3
lea ecx, [esp + 0x3c]
call fcn.0043add7
mov byte [esp + 0xa4], 4
push esi
push esi
push esi
push esi
lea eax, [edi + 0xc0]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x18], esi
lea esi, [esp + 0x2c]
mov eax, edi
call fcn.00416dc0
test eax, eax
je 0x41740b
push edi
lea ecx, [esp + 0x70]
call fcn.0043b41f
mov bl, 5
mov byte [esp + 0xa4], bl
mov ecx, dword [edi + 0xd0]
test ecx, ecx
je 0x416f00
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 8
call fcn.00434537
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xa4], 6
test eax, eax
je 0x416f23
mov ecx, eax
call fcn.00403320
jmp 0x416f25
xor eax, eax
mov byte [esp + 0xa4], bl
mov ecx, dword [edi + 0xd4]
test ecx, ecx
mov dword [edi + 0xd0], eax
je 0x416f45
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 8
call fcn.00434537
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xa4], 7
test eax, eax
je 0x416f68
mov ecx, eax
call fcn.00403320
jmp 0x416f6a
xor eax, eax
mov byte [esp + 0xa4], bl
test ebp, ebp
mov dword [edi + 0xd4], eax
jne 0x416f96
mov esi, dword [edi + 0xd0]
push 0x49b240
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
push eax
mov ecx, esi
call fcn.0043b653
jmp 0x416faa
mov eax, dword [edi + 0xd0]
test eax, eax
je 0x416faa
push eax
mov ebx, ebp
call fcn.00417480
mov bl, 5
mov edx, dword [edi + 0xd0]
mov eax, dword [edi + 0xd4]
lea ecx, [esp + 0x6c]
push ecx
push edx
push eax
push edi
call fcn.00417500
mov eax, dword [edi + 0xd4]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x80]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x84]
mov eax, 0x38e38e39
imul ecx
mov ecx, dword [esp + 0x88]
sar edx, 1
mov eax, edx
shr eax, 0x1f
mov dword [edi + 0xac], ecx
mov ecx, dword [edi + 0xd8]
add eax, edx
test ecx, ecx
mov dword [edi + 0xa8], eax
je 0x41701a
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 8
call fcn.00434537
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xa4], 8
test eax, eax
je 0x41703f
mov ecx, eax
call fcn.00403320
mov esi, eax
jmp 0x417041
xor esi, esi
mov byte [esp + 0xa4], bl
cmp dword [edi + 0x54], 0
mov dword [edi + 0xd8], esi
jne 0x417077
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x70]
sub eax, 2
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, esi
jmp 0x4170c7
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
sub eax, 2
push eax
mov eax, dword [esp + 0x88]
push eax
push ecx
call esi
push eax
lea ecx, [esp + 0x28]
call fcn.0043b653
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0xa8]
mov edx, dword [esp + 0x70]
mov ebx, dword [edi + 0xd8]
sub eax, 2
push ecx
lea eax, [eax + eax*8]
push eax
push edx
call esi
mov ecx, ebx
push eax
call fcn.0043b653
mov eax, dword [esp + 0x70]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call esi
push eax
lea ecx, [esp + 0x60]
call fcn.0043b38c
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x4170f1
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x60]
push eax
push ecx
call fcn.0043b721
mov edx, dword [esp + 0x70]
push edx
mov dword [esp + 0x24], eax
call esi
push eax
lea ecx, [esp + 0x40]
call fcn.0043b38c
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x41711e
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x44]
push eax
call fcn.0043b721
cmp dword [edi + 0x54], 0
mov ebp, eax
mov dword [esp + 0x1c], ebp
je 0x41715f
mov ecx, dword [esp + 0x70]
push ecx
call esi
push eax
lea ecx, [esp + 0x50]
call fcn.0043b38c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
push edx
push eax
call fcn.0043b721
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x4c]
jmp 0x417163
lea ecx, [esp + 0x3c]
push 4
call fcn.0043ac43
cmp dword [edi + 0x54], 0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x60]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x8c]
push ecx
push 0
push 0
push edx
jne 0x4171af
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
sub eax, 2
push eax
mov eax, dword [esp + 0x5c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x41724c
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
sub eax, 2
push eax
mov eax, dword [esp + 0x6c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
xor ebx, ebx
sub ecx, 2
test ecx, ecx
jle 0x41724c
mov eax, dword [esp + 0x84]
xor esi, esi
test eax, eax
jle 0x417236
lea esp, [esp]
mov edx, dword [esp + 0x50]
push ebx
push esi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [edi + 0xa8]
mov ebp, eax
mov eax, esi
cdq
idiv ecx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
push ebp
sub ecx, 2
imul ecx, eax
mov eax, dword [esp + 0x44]
push edx
add ecx, ebx
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x84]
add esi, 1
cmp esi, eax
jl 0x4171f0
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
add ebx, 1
sub ecx, 2
cmp ebx, ecx
jl 0x4171e3
mov ebp, dword [esp + 0x1c]
cmp dword [edi + 0x54], 0
je 0x417271
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41725d
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x50]
push eax
push edx
call fcn.0043b721
lea ecx, [esp + 0x4c]
call fcn.0043b3f0
test ebp, ebp
jne 0x417279
xor eax, eax
jmp 0x41727c
mov eax, dword [ebp + 4]
push eax
mov eax, dword [esp + 0x44]
push eax
call fcn.0043b721
lea ecx, [esp + 0x3c]
call fcn.0043b3f0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41729b
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x60]
push eax
push ecx
call fcn.0043b721
lea ecx, [esp + 0x5c]
call fcn.0043b3f0
mov eax, dword [edi + 0xd8]
mov eax, dword [eax + 4]
lea edx, [esp + 0x80]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x84]
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x88]
mov dword [edi + 0xa8], ecx
lea esi, [edi + 0xdc]
mov ecx, esi
mov dword [edi + 0xac], edx
call fcn.00441da4
mov eax, dword [edi + 0xac]
mov ecx, dword [edi + 0xa8]
push 0
push 0
push 0x20
push eax
push ecx
mov ecx, esi
call fcn.00441df4
test eax, eax
jne 0x41737a
mov byte [esp + 0xa4], 4
lea ecx, [esp + 0x6c]
call fcn.0043b473
mov byte [esp + 0xa4], 3
lea ecx, [esp + 0x3c]
call fcn.0043b406
mov byte [esp + 0xa4], 2
lea ecx, [esp + 0x4c]
call fcn.0043b406
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x5c]
call fcn.0043b406
or eax, 0xffffffff
mov dword [esp + 0xa4], eax
mov dword [esp + 0x24], vtable.CBitmap.0
jmp 0x41744c
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x417387
mov eax, dword [eax + 4]
mov edi, dword [edi + 0xe0]
push eax
push edi
call fcn.0043c6ad
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00419b00
mov byte [esp + 0xa4], 4
lea ecx, [esp + 0x6c]
call fcn.0043b473
mov byte [esp + 0xa4], 3
lea ecx, [esp + 0x3c]
call fcn.0043b406
mov byte [esp + 0xa4], 2
lea ecx, [esp + 0x4c]
call fcn.0043b406
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x5c]
call fcn.0043b406
or eax, 0xffffffff
mov dword [esp + 0xa4], eax
mov dword [esp + 0x24], vtable.CBitmap.0
mov dword [esp + 0xa4], eax
lea ecx, [esp + 0x24]
call fcn.00403000
mov eax, 1
jmp 0x41745e
mov byte [esp + 0xa4], 3
lea ecx, [esp + 0x3c]
call fcn.0043b406
mov byte [esp + 0xa4], 2
lea ecx, [esp + 0x4c]
call fcn.0043b406
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x5c]
call fcn.0043b406
or eax, 0xffffffff
mov dword [esp + 0xa4], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0xa4], eax
lea ecx, [esp + 0x24]
call fcn.00403000
xor eax, eax
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4