Function at 0x100049d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x110
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0xd4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xd8], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xc8], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0xc0], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0xb4], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0xb8], eax
test byte [0x100258b8], 8
jne 0x10004d00
mov edx, dword [edi + 0x110]
xor eax, eax
test edx, edx
jne 0x10004a50
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xb4]
sub esp, 0xc
test eax, eax
je 0x10004a9f
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x10004a9f
test byte [ebp - 0xc4], 0x10
je 0x10004df0
mov dword [ebp - 0xbc], 1
mov eax, dword [ebp - 0xec]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov esi, dword [ebp - 0xc8]
test esi, esi
setne bl
test byte [ebp - 0xc4], 2
je 0x10004ae6
test bl, bl
jne 0x10004d80
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
jle 0x10004cc0
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xbc]
dec eax
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xc4]
shr eax, 2
and ebx, eax
mov byte [ebp - 0xd0], bl
mov ebx, dword [ebp - 0xec]
jmp 0x10004bbb
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebx]
test ecx, ecx
lea eax, [ecx + edx*4]
mov ecx, 0
cmove eax, ecx
test esi, esi
je 0x10004b98
mov ecx, dword [ebp - 0xd8]
add ecx, dword [ebx + 0xc]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp - 0xd4]
add ecx, dword [ebx + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [esp + 8], esi
mov dword [ebp - 0xe8], ecx
mov ecx, dword [ebp - 0xe0]
lea eax, [eax + edx*2]
mov edx, dword [ebp - 0xe8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc4]
mov dword [esp], eax
mov eax, edi
call sym._PSDRV_Text.part.0
mov dword [esp], edi
add ebx, 0x10
inc dword [ebp - 0xb0]
mov esi, dword [ebp - 0xb0]
call sym._PSDRV_ResetClip
cmp esi, dword [ebp - 0xbc]
je 0x10004cc0
mov eax, dword [ebx]
mov esi, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb0]
sub esi, eax
cmp dword [ebp - 0xcc], ecx
je 0x10004bd8
mov esi, dword [ebx + 0x10]
sub esi, eax
mov eax, dword [ebx + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._PSDRV_SetFont
mov dword [esp], edi
call sym._PSDRV_SetClip
cmp byte [ebp - 0xd0], 0
je 0x10004b30
mov dword [esp], edi
call sym._PSDRV_WriteGSave
mov eax, dword [ebp - 0xc8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 8]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [ebp - 0xe0], eax
sub eax, edx
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._PSDRV_WriteRectangle
mov dword [esp], edi
call sym._PSDRV_WriteClip
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebx]
test edx, edx
je 0x10004d70
mov edx, dword [ebp - 0xb8]
lea edx, [edx + eax*4]
mov dword [ebp - 0xe0], edx
test esi, esi
je 0x10004cb1
mov edx, dword [ebp - 0xd4]
add edx, dword [ebx + 8]
mov dword [ebp - 0xe8], edx
mov edx, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd8]
add ecx, dword [ebx + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0xc0]
lea eax, [edx + eax*2]
mov edx, dword [ebp - 0xe8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc4]
mov dword [esp], eax
mov eax, edi
call sym._PSDRV_Text.part.0
mov dword [esp], edi
call sym._PSDRV_WriteGRestore
jmp 0x10004b98
mov edi, dword [ebp - 0xec]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ebx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xc0]
mov edx, ebx
call sym._wine_dbgstr_wn
mov edx, dword [ebp - 0xb8]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0xc4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0xd8]
mov dword [esp + 0xc], str._x_d__y_d__flags0x_08x__str_s__count_d__lpDx_p__n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xd4]
mov dword [esp + 8], str.PSDRV_ExtTextOut
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100258b8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_17
jmp 0x10004a35
mov dword [ebp - 0xe0], 0
jmp 0x10004c64
mov dword [esp], edi
call sym._PSDRV_SetClip
mov dword [esp], edi
call sym._PSDRV_WriteGSave
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], ecx
mov dword [ebp - 0xb0], eax
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._PSDRV_WriteRectangle
lea eax, [edi + 0x100]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._PSDRV_WriteSetColor
mov dword [esp], edi
call sym._PSDRV_WriteFill
mov dword [esp], edi
call sym._PSDRV_WriteGRestore
mov dword [esp], edi
call sym._PSDRV_ResetClip
jmp 0x10004ae6
mov dword [esp + 4], 6
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetCurrentObject]
lea edx, [ebp - 0x6c]
sub esp, 8
mov dword [esp + 8], edx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetObjectW]
sub esp, 0xc
test eax, eax
je 0x10004a9f
cmp word [ebp - 0x50], 0x40
jne 0x10004a9f
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], 5
mov dword [ebp - 0xb0], 0
movzx eax, word [eax]
mov dword [ebp - 0xbc], 0
movzx edx, ah
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx edx, word [edx + edx + 0x10056e40]
and ecx, 0xf
add edx, ecx
movzx edx, word [edx + edx + 0x10056e40]
add eax, edx
movzx eax, word [eax + eax + 0x10056e40]
dec eax
cmp ax, 2
setbe al
movzx eax, al
mov edi, eax
lea esi, [esi]
mov eax, dword [ebp - 0xb0]
mov esi, eax
mov ebx, eax
cmp dword [ebp - 0xb4], eax
ja 0x10004ec3
jmp 0x10004f09
inc ebx
mov esi, ebx
cmp dword [ebp - 0xb4], ebx
jbe 0x10004f09
mov eax, dword [ebp - 0xc0]
mov esi, ebx
movzx eax, word [eax + ebx*2]
movzx edx, ah
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx edx, word [edx + edx + 0x10056e40]
and ecx, 0xf
add edx, ecx
movzx edx, word [edx + edx + 0x10056e40]
add eax, edx
movzx eax, word [eax + eax + 0x10056e40]
dec eax
cmp ax, 2
setbe al
movzx eax, al
cmp eax, edi
je 0x10004eb8
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xb0]
shl edx, 4
add edx, dword [ebp - 0xec]
mov dword [edx], eax
mov dword [edx + 4], edi
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
test edi, edi
jne 0x10004fc3
lea ecx, [ebp - 0xa8]
test eax, eax
jg 0x1000501d
inc dword [ebp - 0xbc]
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0xcc]
jge 0x10005127
cmp dword [ebp - 0xb4], esi
jbe 0x10004fb8
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xb0], ebx
movzx eax, word [eax + esi*2]
movzx edx, ah
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx edx, word [edx + edx + 0x10056e40]
and ecx, 0xf
add edx, ecx
movzx edx, word [edx + edx + 0x10056e40]
add eax, edx
movzx eax, word [eax + eax + 0x10056e40]
dec eax
cmp ax, 2
setbe al
movzx eax, al
mov edi, eax
jmp 0x10004ea0
mov edi, dword [ebp - 0xd0]
jmp 0x10004aca
mov edi, dword [ebp - 0xd0]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xe8], edx
mov dword [esp + 4], ecx
mov eax, dword [edi]
mov dword [ebp - 0xe0], ecx
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetTextMetricsW]
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x9c]
sub esp, 8
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._PSDRV_XWStoDS
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xe8]
mov edi, eax
mov eax, dword [ebp - 0xb0]
test eax, eax
jle 0x1000506f
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0xc], ecx
mov dword [ebp - 0xe0], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetTextExtentPointW]
mov eax, dword [ebp - 0xa8]
sub esp, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp], eax
call sym._PSDRV_XWStoDS
mov edx, dword [ebp - 0xe0]
add edi, eax
mov dword [ebp - 0xe0], edx
test edi, edi
je 0x10004f47
neg edi
pxor xmm2, xmm2
pxor xmm0, xmm0
cvtsi2sd xmm2, edi
cvtsi2sd xmm0, dword [ebp - 0x64]
divsd xmm0, qword [0x1002d150]
mulsd xmm0, qword [0x1002d158]
divsd xmm0, qword [0x1002d160]
movsd qword [esp], xmm0
movsd qword [ebp - 0xf8], xmm0
movsd qword [ebp - 0xb0], xmm2
call dword [sym.imp.ucrtbase.dll_sin]
mov edx, dword [ebp - 0xe0]
movsd xmm0, qword [ebp - 0xf8]
fstp qword [ebp - 0xe8]
movsd xmm1, qword [ebp - 0xe8]
mulsd xmm1, qword [ebp - 0xb0]
mov dword [ebp - 0xe8], edx
cvttsd2si eax, xmm1
mov dword [edx + 0xc], eax
movsd qword [esp], xmm0
call dword [sym.imp.ucrtbase.dll_cos]
movsd xmm0, qword [ebp - 0xb0]
mov edx, dword [ebp - 0xe8]
fstp qword [ebp - 0xe0]
mulsd xmm0, qword [ebp - 0xe0]
cvttsd2si eax, xmm0
mov dword [edx + 8], eax
jmp 0x10004f47
shl dword [ebp - 0xcc], 1
mov edx, dword [ebp - 0xcc]
mov edi, dword [ebp - 0xec]
mov dword [esp + 4], 0
shl edx, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov dword [ebp - 0xec], eax
sub esp, 0x10
jmp 0x10004f5f