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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff44
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, 0xfa3284
call fcn.00f4f878
test byte [ebx + 8], 1
setne dl
and edx, 1
test dl, dl
je 0xd82556
push str.QPainter::begin:_Painter_is_already_active._n_tYou_must_end___the_painter_before_a_second_begin__
call fcn.00d9ab3c
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
jmp 0xd82d46
test esi, esi
jne 0xd82576
push str.QPainter::begin:_Paint_device_cannot_be_null
call fcn.00d9ab3c
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
jmp 0xd82d46
xor ecx, ecx
cmp dword [0xfa2b7c], 0
mov dword [ebp - 0x84], ecx
je 0xd825c7
mov edi, esi
push 0
push 0
push edi
mov eax, dword [0xfa2b7c]
push eax
call fcn.00d98928
add esp, 0x10
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
je 0xd825c2
movzx edx, word [esi + 8]
and edx, 0xf
dec edx
jne 0xd825ca
test esi, esi
je 0xd825b8
lea ecx, [esi - 0x30]
jmp 0xd825ba
mov ecx, esi
mov dword [ebp - 0x84], ecx
jmp 0xd825ca
mov dword [ebx + 0xc], esi
jmp 0xd825ca
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 0xc]
cmp word [eax + 0xa], 0
setne dl
and edx, 1
test dl, dl
je 0xd825f8
push str.QPainter::begin:_Another_QPainter_is_already_painting_this_device__n_tA_paint_device_can_only_be_painted_by_one_QPainter_at_a_time
call fcn.00d9ab3c
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
jmp 0xd82d46
cmp dword [ebx + 8], 4
setne cl
and ecx, 1
xor eax, eax
mov byte [ebp - 0x85], cl
mov dword [ebx + 8], eax
mov edx, dword [ebx + 0xc]
mov ax, word [edx + 8]
movzx edi, ax
and edi, 0xf
test al, 0x10
je 0xd82624
or dword [ebx + 8], 2
jmp 0xd82633
cmp edi, 2
jne 0xd82633
mov eax, dword [ebx + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
pop ecx
xor ecx, ecx
xor eax, eax
mov dword [ebx + 0x120], ecx
mov dword [ebx + 0x134], eax
test byte [ebx + 8], 2
setne dl
and edx, 1
test dl, dl
je 0xd826a5
push 0
push ebx
push 0x1e
mov ecx, dword [ebx + 0xc]
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
add esp, 0x10
test al, al
jne 0xd82683
xor edx, edx
mov dword [ebx + 0xc], edx
and dword [ebx + 8], 0xfffffdfc
xor eax, eax
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
jmp 0xd82d46
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0xd82694
push eax
push ebx
call fcn.00e12d14
add esp, 8
mov eax, dword [ebx + 0x50]
test eax, eax
je 0xd826a5
push eax
push ebx
call fcn.00e12d6c
add esp, 8
or dword [ebx + 8], 1
mov edx, dword [ebx + 0xc]
inc word [edx + 0xa]
mov ecx, dword [ebx + 0xc]
cmp word [ecx + 0xa], 1
je 0xd826d6
push 0x2ca
push str.kernelqpainter_win.cpp
push str.pdev__painters1
push 0xfa2ef3
call fcn.00d9ab3c
add esp, 0x10
xor eax, eax
xor edx, edx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 0x90]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebp - 0x8c]
mov dword [ebx + 0x20], ecx
cmp byte [ebp - 0x85], 0
je 0xd827f9
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
lea eax, [ebx + 0x78]
push eax
call fcn.00e56d48
xor edx, edx
pop ecx
xor eax, eax
mov byte [ebx + 0x10c], dl
mov al, dl
cmp edi, 1
mov dword [ebx + 0x108], eax
je 0xd827f9
mov word [ebp - 0x70], 8
lea ecx, [ebp - 4]
push ecx
call fcn.00dc5ad0
pop ecx
inc dword [ebp - 0x64]
mov word [ebp - 0x70], 0x14
mov word [ebp - 0x70], 0x20
lea eax, [ebp - 0x14]
push eax
call fcn.00e166e8
pop ecx
inc dword [ebp - 0x64]
mov word [ebp - 0x70], 0x14
mov word [ebp - 0x70], 0x2c
lea edx, [ebp - 0x24]
push edx
call fcn.00e16d88
pop ecx
inc dword [ebp - 0x64]
mov word [ebp - 0x70], 0x14
lea ecx, [ebp - 4]
push ecx
lea eax, [ebx + 0x24]
push eax
call fcn.00dc5d40
add esp, 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebx + 0x28]
push ecx
call fcn.00e168bc
add esp, 8
lea eax, [ebp - 0x24]
push eax
lea edx, [ebx + 0x38]
push edx
call fcn.00e16fa0
add esp, 8
mov ecx, dword [0x103312c]
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.00dbb3c8
add esp, 8
dec dword [ebp - 0x64]
push 2
lea edx, [ebp - 0x24]
push edx
call fcn.00e16ec4
add esp, 8
dec dword [ebp - 0x64]
push 2
lea ecx, [ebp - 0x14]
push ecx
call fcn.00e16828
add esp, 8
dec dword [ebp - 0x64]
push 2
lea eax, [ebp - 4]
push eax
call fcn.00dc5ca8
mov word [ebp - 0x70], 0
add esp, 8
xor edx, edx
xor eax, eax
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x58], edx
mov dword [ebx + 0x60], eax
cmp edi, 1
jne 0xd829d6
cmp dword [ebx + 0xc], 0
je 0xd82823
mov esi, dword [ebx + 0xc]
add esi, 0xffffffd0
jmp 0xd82826
mov esi, dword [ebx + 0xc]
mov word [ebp - 0x70], 0x38
lea eax, [esi + 0x70]
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00dc5c74
add esp, 8
inc dword [ebp - 0x64]
lea ecx, [ebp - 0x28]
push ecx
inc dword [ebp - 0x64]
lea eax, [ebx + 0x24]
push eax
call fcn.00dc5d40
add esp, 8
dec dword [ebp - 0x64]
push 2
lea edx, [ebp - 0x28]
push edx
call fcn.00dc5ca8
add esp, 8
mov word [ebp - 0x70], 0x44
push 1
push 0
push esi
call fcn.00e52eb4
pop ecx
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00e16768
add esp, 0x10
inc dword [ebp - 0x64]
push eax
lea eax, [ebx + 0x28]
push eax
call fcn.00e168bc
add esp, 8
dec dword [ebp - 0x64]
push 2
lea edx, [ebp - 0x38]
push edx
call fcn.00e16828
add esp, 8
cmp byte [ebp - 0x85], 0
je 0xd828eb
mov word [ebp - 0x70], 0x50
lea ecx, [ebp - 0x48]
push ecx
call fcn.00e16d88
pop ecx
inc dword [ebp - 0x64]
mov word [ebp - 0x70], 0x5c
lea eax, [ebp - 0x48]
push eax
lea edx, [ebx + 0x38]
push edx
call fcn.00e16fa0
add esp, 8
dec dword [ebp - 0x64]
push 2
lea ecx, [ebp - 0x48]
push ecx
call fcn.00e16ec4
mov word [ebp - 0x70], 0
add esp, 8
lea eax, [esi + 0x64]
push eax
lea edx, [ebx + 0x10]
push edx
call fcn.00dbb3c8
lea eax, [esi + 0x54]
add esp, 8
mov edx, dword [eax + 8]
sub edx, dword [eax]
lea eax, [esi + 0x54]
inc edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x60], edx
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
inc ecx
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x64], ecx
test byte [esi + 0x41], 1
setne al
and eax, 1
test al, al
je 0xd82936
mov edx, dword [esi + 0x34]
mov dword [ebx + 0x120], edx
jmp 0xd82af7
test byte [esi + 0x46], 4
setne al
and eax, 1
test al, al
je 0xd829b9
mov edx, dword [esi + 0x3c]
push edx
call sub.USER32.DLL_GetWindowDC
mov dword [ebx + 0x120], eax
test byte [esi + 0x44], 1
setne cl
and ecx, 1
test cl, cl
je 0xd829c8
push esi
lea eax, [ebp - 0xac]
push eax
call fcn.00e524e8
mov edx, dword [ebp - 0xac]
mov ecx, dword [esi + 0x54]
add esp, 8
sub ecx, edx
mov dword [ebp - 0x94], ecx
lea eax, [ebp - 0xbc]
push esi
push eax
call fcn.00e524e8
mov edx, dword [ebp - 0xb8]
mov eax, dword [esi + 0x58]
add esp, 8
sub eax, edx
neg eax
push 0
push eax
mov edx, dword [ebp - 0x94]
neg edx
push edx
mov ecx, dword [ebx + 0x120]
push ecx
call sub.GDI32.DLL_SetWindowOrgEx
jmp 0xd829c8
mov eax, dword [esi + 0x3c]
push eax
call sub.USER32.DLL_GetDC
mov dword [ebx + 0x120], eax
mov edx, dword [ebx + 0x120]
mov dword [esi + 0x34], edx
jmp 0xd82af7
cmp edi, 2
jne 0xd82a8f
mov esi, dword [ebx + 0xc]
mov eax, dword [esi + 0x14]
cmp dword [eax + 4], 0
sete dl
and edx, 1
test dl, dl
je 0xd82a16
push str.QPainter::begin:_Cannot_paint_null_pixmap
call fcn.00d9ab3c
pop ecx
push ebx
call fcn.00d82d50
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
jmp 0xd82d46
mov ecx, dword [esi + 0x14]
test byte [ecx + 0xe], 8
setne al
and eax, 1
test al, al
je 0xd82a32
push 0
push esi
call fcn.00d7eaa8
add esp, 8
mov edx, dword [esi + 4]
mov dword [ebx + 0x120], edx
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 4]
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x60], eax
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + 8]
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x64], ecx
mov eax, dword [esi + 0x14]
movsx edx, word [eax + 0xc]
dec edx
jne 0xd82af7
or dword [ebx + 8], 0x100
mov eax, dword [0x1033120]
push eax
lea edx, [ebx + 0x10]
push edx
call fcn.00dbb3c8
add esp, 8
mov ecx, dword [0x1033124]
push ecx
lea eax, [ebx + 0x28]
push eax
call fcn.00e16a8c
add esp, 8
jmp 0xd82af7
cmp edi, 3
jne 0xd82abd
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
test eax, eax
je 0xd82aa4
mov dword [ebx + 0x120], eax
or dword [ebx + 8], 0x1008
test byte [0xf9c6d4], 0xf
je 0xd82af7
or dword [ebx + 8], 0x20000
jmp 0xd82af7
cmp edi, 5
jne 0xd82af7
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
mov dword [ebx + 0x120], eax
test eax, eax
je 0xd82af7
lea edx, [ebp - 0x9c]
push edx
push eax
call sub.GDI32.DLL_GetWindowExtEx
mov ecx, dword [ebp - 0x9c]
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x60], ecx
mov eax, dword [ebp - 0x98]
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x64], eax
test byte [ebx + 8], 2
setne dl
and edx, 1
test dl, dl
je 0xd82b2d
push 1
mov ecx, dword [ebx + 0xc]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
add esp, 8
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x60], eax
push 2
mov edx, dword [ebx + 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
add esp, 8
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x64], eax
cmp dword [ebx + 0x60], 0
jne 0xd82b44
mov edx, 0x400
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x60], edx
cmp dword [ebp - 0x84], 0
je 0xd82bef
mov word [ebp - 0x70], 0x68
mov eax, dword [ebp - 0x84]
add eax, 0x70
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00dc5c74
add esp, 8
inc dword [ebp - 0x64]
lea eax, [ebp - 0x4c]
push eax
inc dword [ebp - 0x64]
lea edx, [ebx + 0x24]
push edx
call fcn.00dc5d40
add esp, 8
dec dword [ebp - 0x64]
push 2
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00dc5ca8
add esp, 8
mov word [ebp - 0x70], 0x74
push 1
push 0
mov eax, dword [ebp - 0x84]
push eax
call fcn.00e52eb4
pop ecx
push eax
lea edx, [ebp - 0x5c]
push edx
call fcn.00e16768
add esp, 0x10
inc dword [ebp - 0x64]
push eax
lea ecx, [ebx + 0x28]
push ecx
call fcn.00e168bc
add esp, 8
dec dword [ebp - 0x64]
push 2
lea eax, [ebp - 0x5c]
push eax
call fcn.00e16828
add esp, 8
mov edx, dword [ebp - 0x84]
add edx, 0x64
push edx
lea ecx, [ebx + 0x10]
push ecx
call fcn.00dbb3c8
add esp, 8
test byte [ebx + 8], 2
setne al
and eax, 1
test al, al
je 0xd82c29
cmp dword [ebx + 0x120], 0
jne 0xd82c29
lea edx, [ebx + 0x10]
push edx
push ebx
call fcn.00d82fa0
add esp, 8
push 0
push ebx
call fcn.00d8306c
add esp, 8
push 0
push ebx
call fcn.00d830fc
add esp, 8
cmp dword [ebx + 0x120], 0
je 0xd82d02
mov esi, dword [0xf9ea8c]
test esi, esi
je 0xd82c66
cmp edi, 3
je 0xd82c66
push 1
push esi
mov eax, dword [ebx + 0x120]
push eax
call sub.GDI32.DLL_SelectPalette
mov dword [ebx + 0x134], eax
mov edx, dword [ebx + 0x120]
push edx
call sub.GDI32.DLL_RealizePalette
test byte [ebx + 9], 0x10
je 0xd82ca7
mov edi, dword [ebx + 0x14]
xor edx, edx
mov eax, edi
mov ecx, edi
shr eax, 0x10
and edi, 0xff
and eax, 0xff
shr ecx, 8
mov dl, al
xor eax, eax
and ecx, 0xff
mov al, cl
movzx ecx, ax
shl ecx, 8
mov eax, edi
or edx, ecx
xor ecx, ecx
mov cl, al
shl ecx, 0x10
or edx, ecx
jmp 0xd82cbd
lea esi, [ebx + 0x10]
test byte [esi + 7], 0x80
jne 0xd82cb4
mov edx, dword [esi]
jmp 0xd82cbd
push esi
call fcn.00d723d0
pop ecx
mov edx, eax
push edx
mov eax, dword [ebx + 0x120]
push eax
call sub.GDI32.DLL_SetBkColor
push 1
mov ecx, dword [ebx + 0x120]
push ecx
call sub.GDI32.DLL_SetBkMode
push 0xd
mov eax, dword [ebx + 0x120]
push eax
call sub.GDI32.DLL_SetROP2
push 0x18
mov edx, dword [ebx + 0x120]
push edx
call sub.GDI32.DLL_SetTextAlign
push 3
mov ecx, dword [ebx + 0x120]
push ecx
call sub.GDI32.DLL_SetStretchBltMode
push ebx
call fcn.00d81e70
pop ecx
push ebx
call fcn.00d82170
pop ecx
mov eax, dword [ebx + 0xc]
cmp eax, dword [0xfa2b78]
jne 0xd82d33
mov edx, dword [0xfa2b74]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
push eax
mov edx, dword [ebx + 0x120]
push edx
call sub.GDI32.DLL_SelectClipRgn
or dword [ebx + 8], 0x200
mov al, 1
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret