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

Disassembly:
push 0xffffffffffffffff
push 0x4f0658
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov esi, 1
xor edx, edx
cmp dword [edi + 0x204], esi
mov dword [esp + 0x3c], edx
jne 0x41bfdc
mov eax, dword [edi + 0x20c]
imul eax, dword [edi + 0x208]
mov ecx, dword [edi + 0x210]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
jmp 0x41bff7
mov eax, dword [edi + 0x210]
imul eax, dword [edi + 0x208]
mov ecx, dword [edi + 0x20c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0xcc]
xor ebp, ebp
test byte [esp + 0xe4], 1
mov dword [esp + 0x40], ebp
je 0x41c106
push ebp
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
call fcn.004c277c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub esp, 0x10
test byte [edi + 0x80], 2
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
push ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
lea ebp, [edi + 0x54]
push 0
mov dword [eax + 8], ecx
push 0
mov dword [eax + 0xc], edx
je 0x41c05b
xor ecx, ecx
mov eax, ebp
call fcn.00413360
jmp 0x41c063
push 0
push ebp
call fcn.00412a00
mov ecx, dword [edi + 0x208]
cmp dword [esp + 0xd0], ecx
jle 0x41c106
cmp dword [edi + 0x204], esi
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jne 0x41c0b1
mov eax, dword [edi + 0x20c]
imul eax, ecx
push 0
push eax
lea eax, [esp + 0x30]
push eax
jmp 0x41c0c2
mov eax, dword [edi + 0x210]
imul eax, ecx
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub esp, 0x10
test byte [ebp + 0x2c], 2
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x40]
push ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
push 0
mov dword [eax + 8], edx
push 0
mov dword [eax + 0xc], ecx
je 0x41c0fe
xor ecx, ecx
mov eax, ebp
call fcn.00413360
jmp 0x41c106
push 0
push ebp
call fcn.00412a00
test byte [esp + 0xe4], 2
je 0x41c663
xor esi, esi
cmp ebx, esi
jne 0x41c11e
xor eax, eax
jmp 0x41c121
mov eax, dword [ebx + 4]
lea edx, [esp + 0x58]
push edx
push eax
mov dword [esp + 0x60], esi
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
push 3
push eax
mov dword [esp + 0xcc], esi
call sub.gdiplus.dll_GdipSetSmoothingMode
cmp eax, esi
je 0x41c153
mov dword [esp + 0x70], eax
mov esi, dword [esp + 0xd4]
mov eax, dword [esp + 0xd8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x74], eax
jge 0x41c548
cmp dword [edi + 0x1e8], esi
jle 0x41c185
mov ebp, dword [edi + 0x1f8]
add ebp, esi
jmp 0x41c188
or ebp, 0xffffffff
mov eax, dword [edi + 0x210]
mov ecx, dword [edi + 0x20c]
xor edx, edx
cmp dword [edi + 0x204], 1
mov dword [esp + 0x54], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jne 0x41c1bf
imul ecx, esi
push edx
push ecx
lea ecx, [esp + 0x20]
push ecx
jmp 0x41c1c9
imul eax, esi
push eax
push edx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp ebp, dword [edi + 0x1e8]
jge 0x41c537
test ebp, ebp
jl 0x41c537
cmp ebp, dword [edi + 0x1e8]
jge 0x41c589
mov eax, dword [edi + 0x1e4]
mov ecx, dword [eax + ebp*4]
mov edx, dword [edi + 0x54]
mov edx, dword [edx + 0x20]
xor eax, eax
cmp ebp, dword [esp + 0xdc]
lea esi, [edi + 0x54]
setne al
mov dword [esp + 0x38], ecx
mov ecx, esi
sub eax, 1
and eax, 3
push eax
push 1
call edx
test eax, eax
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
je 0x41c27b
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
cmp ebp, dword [esp + 0xdc]
jne 0x41c2b6
cmp dword [esp + 0x18], 0
jl 0x41c2b6
mov ebp, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xdc]
push eax
push ecx
mov ebx, 3
jmp 0x41c2dc
mov ebp, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov edx, dword [esp + 0xf0]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0xdc]
push edx
push eax
xor ebx, ebx
push edi
call fcn.0041bca0
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
push 0
push 2
mov ecx, esi
call eax
mov edx, dword [esi]
push 0
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x28]
push 2
mov ecx, esi
call eax
mov ebx, dword [esp + 0x38]
cmp ebx, dword [edi + 0x2b8]
mov ebp, dword [ebx + 4]
jne 0x41c318
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x41c318
mov ebp, ecx
test ebp, ebp
je 0x41c469
test eax, eax
jne 0x41c36e
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x54], eax
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x41c33d
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x40], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x41c35e
mov dword [ebp + 8], eax
mov edx, dword [esp + 0x38]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], esi
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp ecx, edx
jne 0x41c38d
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
lea ecx, [esp + 0x80]
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
add edx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
add esi, ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0x34], edx
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x40], esi
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [esp + 0xe0], 0
je 0x41c3f9
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x28]
mov ecx, eax
sub ecx, dword [esp + 0x30]
sub eax, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
jmp 0x41c401
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x88]
mov ecx, ebp
fstp dword [esp + 0x4c]
lea esi, [esp + 0x6c]
fild dword [esp + 0x14]
fstp dword [esp + 0x38]
fild dword [esp + 0x2c]
fstp dword [esp + 0x14]
fild dword [esp + 0x28]
fstp dword [esp + 0x88]
fld dword [esp + 0x14]
fstp dword [esp + 0x8c]
fld dword [esp + 0x38]
fstp dword [esp + 0x90]
fld dword [esp + 0x4c]
fstp dword [esp + 0x94]
call fcn.0041cda0
cmp dword [esp + 0xe0], 0
je 0x41c4a2
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0xa8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0x18]
mov ecx, eax
sub ecx, dword [esp + 0x20]
sub eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jmp 0x41c4a6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xcc]
mov esi, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push ebp
mov eax, esi
mov ecx, edi
call fcn.0041c680
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
push ecx
sub eax, 0x10
cmp esi, dword [esp + 0xf0]
mov dword [esp + 0x28], esp
mov esi, esp
push eax
je 0x41c516
call fcn.00401850
xor ecx, ecx
jmp 0x41c520
call fcn.00401850
mov ecx, 3
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
mov edx, edi
call fcn.0041ca40
mov esi, dword [esp + 0x50]
mov ebx, ebp
add esi, 1
cmp esi, dword [esp + 0x74]
mov dword [esp + 0x50], esi
jl 0x41c173
mov eax, dword [edi + 0x1f8]
mov edx, dword [edi + 0x208]
xor ecx, ecx
test eax, eax
setg cl
add edx, eax
xor eax, eax
cmp dword [edi + 0x1e8], edx
setg al
mov esi, ecx
mov ecx, dword [esp + 0xe0]
test ecx, ecx
mov ebp, eax
jne 0x41c579
mov eax, esi
test eax, eax
je 0x41c5eb
test ecx, ecx
je 0x41c58e
mov ecx, dword [edi + 0x238]
jmp 0x41c594
call fcn.004bb5cf
mov ecx, dword [edi + 0x234]
mov ebx, dword [edi + 0x214]
sub esp, 0x10
test byte [edi + 0x80], 2
mov edx, esp
mov dword [edx], ebx
mov ebx, dword [edi + 0x218]
mov dword [edx + 4], ebx
mov ebx, dword [edi + 0x21c]
mov dword [edx + 8], ebx
mov ebx, dword [edi + 0x220]
mov dword [edx + 0xc], ebx
mov ebx, dword [esp + 0xdc]
lea eax, [edi + 0x54]
push ebx
push 0
je 0x41c5db
push 3
call fcn.00413360
jmp 0x41c5e4
push ecx
push 3
push eax
call fcn.00412a00
mov ecx, dword [esp + 0xe0]
test ecx, ecx
mov eax, esi
jne 0x41c5f3
mov eax, ebp
test eax, eax
je 0x41c652
test ecx, ecx
je 0x41c603
mov ecx, dword [edi + 0x234]
jmp 0x41c609
mov ecx, dword [edi + 0x238]
mov esi, dword [edi + 0x224]
sub esp, 0x10
test byte [edi + 0x80], 2
mov edx, esp
mov dword [edx], esi
mov esi, dword [edi + 0x228]
mov dword [edx + 4], esi
mov esi, dword [edi + 0x22c]
mov dword [edx + 8], esi
mov esi, dword [edi + 0x230]
lea eax, [edi + 0x54]
push ebx
push 0
mov dword [edx + 0xc], esi
je 0x41c649
push 4
call fcn.00413360
jmp 0x41c652
push ecx
push 4
push eax
call fcn.00412a00
push ebx
push edi
call fcn.0041c7a0
mov ecx, dword [esp + 0x6c]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 0x24