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

Disassembly:
push 0xffffffffffffffff
push 0x44a5ec
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], vtable.CBitmap.0
lea ecx, [esp + 0x40]
mov dword [esp + 0x70], ebx
call fcn.0042a737
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], vtable.CBrush.0
cmp dword [esi + 0x40], ebx
mov byte [esp + 0x70], 2
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
jne 0x41bb43
xor edi, edi
cmp dword [esi + 0x1c], ebx
jle 0x41b879
mov eax, dword [esi + 0x38]
mov edi, edi
cmp dword [eax], ebx
je 0x41b86e
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x30]
mov edx, dword [esi + 0x20]
lea ebp, [ecx + 1]
cmp edx, ebp
ja 0x41b856
lea edx, [ecx + 1]
mov dword [esi + 0x20], edx
mov edx, dword [eax]
mov ecx, dword [edx + 0x34]
mov edx, dword [esi + 0x24]
lea ebp, [ecx + 1]
cmp edx, ebp
ja 0x41b86b
lea edx, [ecx + 1]
mov dword [esi + 0x24], edx
add edi, 1
add eax, 4
cmp edi, dword [esi + 0x1c]
jl 0x41b840
cmp dword [esi + 0x20], ebx
je 0x41bb43
cmp dword [esi + 0x24], ebx
je 0x41bb43
call fcn.0042a47d
mov eax, dword [eax + 0xc]
push 0xa0
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
lea ecx, [esp + 0x3c]
call fcn.0042ad75
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x50]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x54]
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x58]
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [esi + 0x20]
lea eax, [edi + 0xc]
imul edx, eax
lea eax, [edx + 4]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x24], ecx
add ecx, 0xc
imul edx, ecx
mov dword [esp + 0x20], ecx
lea ecx, [edx + 0xc]
push ecx
push eax
push ebx
lea edx, [esi + 0x28]
push ebx
push edx
mov dword [esp + 0x28], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x41b925
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0x44], ebx
push 8
call fcn.00422d57
add esp, 4
cmp eax, ebx
je 0x41b93e
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
mov ebx, eax
movzx eax, word [esp + 0x62]
movzx ecx, word [esp + 0x60]
mov edx, dword [esi + 0x14]
mov ebp, dword [esi + 0x10]
push 0
push eax
push ecx
push edx
push ebp
mov dword [esi + 0x44], ebx
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
mov ecx, ebx
call fcn.0042ad75
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x41b97c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0x40], 0
push 0x10
call fcn.00422d57
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x70], 3
je 0x41b99e
mov ecx, eax
call fcn.0042a737
mov ebx, eax
jmp 0x41b9a0
xor ebx, ebx
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
mov byte [esp + 0x74], 2
mov dword [esi + 0x40], ebx
call ebp
push eax
mov ecx, ebx
call fcn.0042ab3d
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41b9c4
mov eax, dword [eax + 4]
push eax
call ebp
push eax
lea ecx, [esp + 0x44]
call fcn.0042ab3d
mov eax, dword [esi + 0x44]
test eax, eax
mov ecx, dword [esi + 0x40]
je 0x41b9de
mov eax, dword [eax + 4]
push eax
mov eax, dword [ecx + 4]
push eax
call fcn.0042adfa
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
push ecx
push edx
call fcn.0042adfa
mov ebx, eax
mov eax, dword [esi + 0x3c]
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x34]
call fcn.0042ad75
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0x40]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
xor eax, eax
cmp dword [esi + 0x1c], eax
mov dword [esp + 0x18], eax
jle 0x41baff
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx + eax*4]
mov ebx, dword [edx + 0x2c]
test ebx, ebx
lea eax, [ecx + eax*4]
jl 0x41bae7
mov ebp, dword [esp + 0x20]
mov eax, edx
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
imul ebp, ecx
add edi, 0xc
imul edi, eax
push 0x34
add edi, 8
add ebp, 0xc
call fcn.00422d57
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x70], 4
je 0x41ba98
push ebx
push 0xf
push 0
push 0
push 0
push ebp
push edi
push 0xa0
mov ecx, eax
call fcn.00403260
mov ebx, eax
jmp 0x41ba9a
xor ebx, ebx
mov eax, dword [esi + 0x40]
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x78], 2
call fcn.00403410
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
mov edx, dword [esi + 0x38]
sar ecx, 1
add ecx, edi
mov edi, dword [esp + 0x18]
mov edx, dword [edx + edi*4]
sar eax, 1
add eax, ebp
test ebx, ebx
mov dword [edx + 0x48], ecx
mov dword [edx + 0x4c], eax
je 0x41bae3
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 1
mov ecx, ebx
call edx
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esi + 0x1c]
mov dword [esp + 0x18], eax
jl 0x41ba37
mov ebx, dword [esp + 0x28]
cmp dword [esi + 0x48], 0
je 0x41bb1b
mov esi, dword [esi + 0x40]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push 0xf
push 9
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
lea ecx, [esp + 0x30]
call fcn.0042adc8
test ebx, ebx
jne 0x41bb2c
xor eax, eax
jmp 0x41bb2f
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x44]
push eax
push edx
call fcn.0042adfa
lea ecx, [esp + 0x40]
call fcn.0042aba1
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 1
mov dword [esp + 0x30], esi
call fcn.0042adc8
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 0
call fcn.0042abb7
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x38], esi
call fcn.0042adc8
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret