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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x68]
mov eax, ebx
shr eax, 0x18
cmp al, 0xff
push esi
push edi
mov byte [esp + 0x78], al
jne 0x4229dd
cmp byte [esp + 0x7c], 0
jne 0x4229dd
mov edx, dword [esp + 0x74]
movzx eax, bh
mov ah, bl
shr ebx, 0x10
movzx ecx, bl
shl eax, 8
or eax, ecx
push eax
push edx
push 6
call dword [sym.imp.GDI32.dll_CreatePen]
mov esi, dword [esp + 0x6c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
push esi
call ebx
push 5
mov dword [esp + 0x7c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call ebx
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x78]
push edx
push esi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 4]
xor eax, eax
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
jne 0x422a3f
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
mov ecx, eax
cmp edx, esi
jne 0x422a4b
mov edx, dword [esp + 0x74]
mov dword [esp + 0x18], edx
push edx
push ecx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x34]
push eax
call fcn.00438570
mov edi, dword [esp + 0x60]
cmp edi, esi
je 0x422a70
mov esi, dword [esp + 0x40]
imul esi, dword [esp + 0x3c]
add esi, esi
add esi, esi
call fcn.00439960
mov eax, dword [esp + 0x74]
movzx ecx, bh
mov ch, bl
shr ebx, 0x10
movzx edx, bl
shl ecx, 8
or ecx, edx
push ecx
push eax
push 6
call dword [sym.imp.GDI32.dll_CreatePen]
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
push ecx
call edi
mov edx, dword [esp + 0x2c]
push 5
mov ebx, eax
mov dword [esp + 0x18], edx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [esp + 0x18]
push eax
call edi
mov edx, dword [esp + 0x2c]
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
push eax
push eax
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x2c]
push ebx
push eax
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x422b0d
xor esi, esi
jmp 0x422b1a
mov esi, dword [esp + 0x40]
imul esi, dword [esp + 0x3c]
add esi, esi
add esi, esi
mov edi, eax
call fcn.004397c0
test eax, eax
push edi
je 0x422b2d
call fcn.004398a0
jmp 0x422b34
mov eax, esi
call fcn.00439910
mov cl, byte [esp + 0x7c]
add esp, 4
xor eax, eax
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x14], 0
mov byte [esp + 0x17], 1
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push 0
push 0
push edx
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [ebp + 4]
push ecx
mov ecx, dword [ebp]
push eax
push ecx
push edx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
lea esi, [esp + 0x2c]
call fcn.004384d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret