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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xf8c
test eax, eax
push ebp
mov ebp, ecx
je 0x41181b
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_BeginPath]
push ebx
push esi
push edi
mov edx, dword [ebp + 0x28]
xor ebx, ebx
cmp edx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
je 0x411e6c
mov eax, dword [esp + 0x10]
mov edi, 0xffffffe0
xor ecx, ecx
sub edi, edx
lea esi, [eax*4]
lea eax, [edx + 0x20]
mov dword [esp + 0x20], edi
mov edi, dword [eax]
test edi, edi
je 0x411876
test ebx, ebx
je 0x411864
mov ebx, dword [esi + ebx + 0x20]
mov edi, dword [edi + 0xc]
cmp edi, dword [ebx + 0xc]
jae 0x411872
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
add esi, eax
mov ebx, dword [esp + 0x1c]
inc ecx
add eax, 4
cmp ecx, 2
jl 0x41184e
mov edx, dword [edx]
test edx, edx
jne 0x411833
test ebx, ebx
je 0x411e6c
cmp dword [esp + 0x10], 1
jne 0x4118a0
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], eax
mov edx, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x20]
xor eax, eax
cmp edx, 2
sete al
xor edx, edx
mov dword [ebp + 0x24], eax
test eax, eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], edi
setne dl
inc edx
push edx
push eax
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov eax, dword [esp + 0xfa0]
test eax, eax
jne 0x4118dd
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_BeginPath]
lea edx, [esp + 0x24]
push edx
call fcn.00409ee0
add esp, 4
mov esi, ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
test esi, esi
je 0x41195d
lea eax, [esp + 0x24]
lea edi, [esi + 4]
push eax
push edi
call fcn.0040a130
lea ecx, [esp + 0x2c]
lea edx, [esi + 0xc]
push ecx
push edx
call fcn.0040a130
lea eax, [esp + 0x34]
lea ebx, [esi + 0x14]
push eax
push ebx
call fcn.0040a130
mov ecx, dword [ebp + 0x1c]
push edi
push ecx
call fcn.004117b0
mov edx, dword [esp + 0x30]
add esp, 0x20
mov ecx, ebp
mov dword [esi + 0x20], 0
push ebx
push edx
call fcn.004116d0
mov esi, eax
test esi, esi
jne 0x411904
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
push 0
push edi
mov ecx, ebp
call fcn.004116d0
mov esi, eax
test esi, esi
jne 0x4118ec
mov eax, dword [esp + 0xfa0]
test eax, eax
jne 0x41181e
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_EndPath]
mov al, byte [edi + 0x14]
test al, al
je 0x41199b
cmp word [edi + 0x26], si
je 0x41181e
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
mov dword [esp + 0x1c], edx
call fcn.00411610
mov eax, dword [ebx + 0x28]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x411a32
mov edx, dword [esp + 0x16]
xor ecx, ecx
mov ch, byte [esp + 0x14]
and edx, 0xff
or ecx, edx
mov edx, dword [esp + 0x18]
shl ecx, 8
and edx, 0xff
push ebx
or ecx, edx
push ebx
mov dword [esp + 0xcc], ecx
lea ecx, [esp + 0xc8]
push ecx
push eax
push 0x10000
mov dword [esp + 0xd4], ebx
call dword [sym.imp.GDI32.dll_ExtCreatePen]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
push edx
call ebx
mov edi, eax
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_StrokePath]
mov ecx, dword [ebp + 0x1c]
push edi
push ecx
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x41181e
mov al, byte [edi + 0x16]
test al, al
jne 0x411a8e
mov eax, dword [esp + 0x16]
mov ecx, dword [esp + 0x18]
xor edx, edx
and eax, 0xff
mov dh, byte [esp + 0x14]
and ecx, 0xff
or edx, eax
shl edx, 8
or edx, ecx
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
push edx
call ebx
mov edi, eax
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_FillPath]
mov ecx, dword [ebp + 0x1c]
push edi
push ecx
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x41181e
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1c]
push 1
push eax
call dword [sym.imp.GDI32.dll_SelectClipPath]
lea ecx, [esp + 0xcc]
call fcn.00401a60
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 2
push 1
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
lea ecx, [esp + 0xd4]
sar edx, 2
push edx
push ebx
push 0x18
call fcn.00402210
cmp dword [esp + 0xd8], ebx
je 0x411e4c
lea ecx, [esp + 0x1b4]
call fcn.00414000
push 1
lea eax, [esp + 0xd0]
push ebx
push eax
lea ecx, [esp + 0x1c0]
call fcn.00414150
lea ecx, [esp + 0x1b4]
call fcn.00414280
lea ecx, [esp + 0x1b4]
push ecx
lea ecx, [esp + 0x10c]
call fcn.00412c20
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x12c], eax
mov al, byte [edi + 0x16]
cmp al, 2
mov dword [esp + 0x114], ebx
mov dword [esp + 0x128], edx
jne 0x411b76
lea esi, [edi + 0x30]
mov ecx, 0x19
lea edi, [esp + 0x138]
mov byte [esp + 0x11e], al
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x198], ebx
jmp 0x411b92
cmp al, 1
jne 0x411b92
lea esi, [edi + 0x30]
mov ecx, 0x1f
lea edi, [esp + 0x138]
mov byte [esp + 0x11e], al
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 4]
mov ecx, 6
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x58]
sub ecx, edi
mov edi, dword [esp + 0x4c]
sar ecx, 2
sar esi, 2
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x44]
sar edx, 2
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x48], edx
mov edx, dword [ebp]
push ecx
push ebx
sar edi, 2
sar esi, 2
sar eax, 2
push ebx
push edx
lea ecx, [esp + 0x2f4]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
call fcn.00422650
lea ecx, [esp + 0x108]
lea eax, [esp + 0x1b4]
push ecx
lea ecx, [esp + 0x2e8]
mov dword [esp + 0x360], eax
call fcn.004227a0
lea ecx, [esp + 0x2e4]
call fcn.00422730
mov eax, dword [esp + 0x1e0]
mov ecx, dword [esp + 0x1e4]
lea edx, [esp + 0x9c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1d8]
mov dword [esp + 0x78], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0xa8], ebx
call fcn.004026b0
mov dx, word [esp + 0x68]
mov ax, word [esp + 0x6c]
mov cx, word [esp + 0x70]
mov word [esp + 0x94], dx
mov dx, word [esp + 0x74]
mov word [esp + 0x96], ax
mov ax, word [esp + 0x78]
mov word [esp + 0x9a], dx
mov word [esp + 0x98], cx
mov cx, word [esp + 0x7c]
lea edx, [esp + 0x68]
mov word [esp + 0x9c], ax
push edx
mov word [esp + 0xa2], cx
call fcn.00402770
cmp eax, 1
lea ecx, [esp + 0x6c]
setle al
mov byte [esp + 0xa4], al
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call fcn.004026b0
mov cx, word [esp + 0x78]
mov dx, word [esp + 0x7c]
mov ax, word [esp + 0x80]
mov word [esp + 0xc8], cx
mov cx, word [esp + 0x84]
mov word [esp + 0xca], dx
mov dx, word [esp + 0x88]
mov word [esp + 0xce], cx
mov word [esp + 0xcc], ax
mov ax, word [esp + 0x8c]
lea ecx, [esp + 0x78]
mov word [esp + 0xd0], dx
push ecx
mov word [esp + 0xd6], ax
call fcn.00402770
add esp, 0x20
cmp eax, 1
setle dl
lea eax, [esp + 0x108]
mov byte [esp + 0xb8], dl
mov dword [esp + 0xa4], eax
lea ecx, [esp + 0x108]
lea edx, [esp + 0x108]
push ebx
lea eax, [esp + 0x7c]
mov dword [esp + 0x84], ecx
push edx
push eax
lea ecx, [esp + 0x1c0]
mov byte [esp + 0xc6], 0
mov byte [esp + 0xa2], 0
mov byte [esp + 0xc5], 1
mov byte [esp + 0xa1], 1
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x90], ebx
call fcn.00414330
lea ecx, [esp + 0x1b4]
call fcn.00415980
lea ecx, [esp + 0x108]
call fcn.00412c50
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xe4]
push 0xcc0020
push ebx
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
sub edx, eax
push ebx
push edx
mov edx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_StretchDIBits]
lea ecx, [esp + 0x1b4]
call fcn.004140c0
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x1c]
push ecx
push edx
call dword [sym.imp.GDI32.dll_RestoreDC]
lea ecx, [esp + 0xcc]
call fcn.00401a90
jmp 0x41181e
mov eax, dword [esp + 0xfa0]
pop edi
pop esi
pop ebx
test eax, eax
je 0x411e90
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_EndPath]
mov ecx, dword [ebp + 0x1c]
push 1
push ecx
call dword [sym.imp.GDI32.dll_SelectClipPath]
pop ebp
add esp, 0xf8c
ret 4