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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xfb8
test eax, eax
push ebp
mov ebp, ecx
je 0x41eba1
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_BeginPath]
push ebx
push esi
push edi
mov edx, dword [ebp + 0x24]
xor ebx, ebx
cmp edx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
je 0x41f1cf
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 + 0x74], edi
mov edi, dword [eax]
test edi, edi
je 0x41ebfc
test ebx, ebx
je 0x41ebea
mov ebx, dword [esi + ebx + 0x20]
mov edi, dword [edi + 0xc]
cmp edi, dword [ebx + 0xc]
jae 0x41ebf8
mov esi, dword [esp + 0x74]
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 0x41ebd4
mov edx, dword [edx]
test edx, edx
jne 0x41ebb9
test ebx, ebx
je 0x41f1cf
cmp dword [esp + 0x10], 1
jne 0x41ec26
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
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
test eax, eax
mov dword [esp + 0x10], edi
mov dword [ebp + 0x20], eax
je 0x41ec43
push 2
jmp 0x41ec45
push 1
mov edx, dword [ebp + 0x30]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov eax, dword [esp + 0xfcc]
test eax, eax
jne 0x41ec70
mov edx, dword [ebp + 0x30]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_BeginPath]
lea edx, [esp + 0x20]
push edx
call fcn.004151d0
add esp, 4
mov esi, ebx
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x30]
mov ecx, dword [esi + 4]
push 0
push eax
mov eax, dword [edx + 0x28]
push ecx
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
test esi, esi
je 0x41ed65
lea edx, [esp + 0x20]
lea edi, [esi + 4]
push edx
push edi
call fcn.00415460
lea eax, [esp + 0x28]
lea ecx, [esi + 0xc]
push eax
push ecx
call fcn.00415460
lea edx, [esp + 0x30]
lea ebx, [esi + 0x14]
push edx
push ebx
call fcn.00415460
mov eax, dword [esi + 0x1c]
add esp, 0x18
test eax, eax
je 0x41ecee
mov eax, dword [esi + 0x18]
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebx]
push eax
mov eax, dword [edx + 0x28]
push ecx
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
jmp 0x41ed3f
lea edx, [esp + 0x10c]
push edx
push edi
call 0x407ac0
mov ecx, dword [ebp + 0x30]
add esp, 8
xor eax, eax
mov edx, dword [esp + eax + 0x114]
mov dword [esp + eax + 0xc0], edx
mov edx, dword [esp + eax + 0x118]
mov dword [esp + eax + 0xc4], edx
add eax, 8
cmp eax, 0x18
jl 0x41ed04
mov ecx, dword [ecx + 0x28]
lea eax, [esp + 0xc0]
push 3
push eax
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_PolyBezierTo]
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, ebp
mov dword [esi + 0x20], 0
call fcn.0041eaa0
mov esi, eax
test esi, esi
jne 0x41eca1
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
push 0
push edi
mov ecx, ebp
call fcn.0041eaa0
mov esi, eax
test esi, esi
jne 0x41ec7f
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_EndPath]
mov eax, dword [esp + 0xfcc]
test eax, eax
jne 0x41eba4
mov al, byte [edi + 0x14]
test al, al
je 0x41eda9
cmp word [edi + 0x26], si
je 0x41eba4
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.0041e9d0
mov eax, dword [ebx + 0x28]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x41edea
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x16]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
mov ecx, dword [ebp + 0x30]
push eax
call fcn.00463df0
jmp 0x41eba4
mov al, byte [edi + 0x16]
test al, al
jne 0x41ee0d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x16]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x30]
call fcn.00463e80
jmp 0x41eba4
push str.Before_creation_of_bitmap_n
call fcn.00406d50
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x2c]
add esp, 4
sub edx, esi
mov esi, dword [esp + 0x20]
push ebx
push 7
sub eax, esi
push ebx
sar edx, 2
push 0x18
push edx
sar eax, 2
push eax
push ecx
lea ecx, [esp + 0xf4]
call fcn.0045d4a0
push str.After_creation_of_bitmap_n
call fcn.00406d50
mov eax, dword [esp + 0xf4]
add esp, 4
cmp eax, ebx
je 0x41f1be
mov edx, dword [ebp + 0x2c]
lea ecx, [esp + 0x1d8]
mov eax, dword [edx + 0xfe4]
push eax
call fcn.004215b0
push 7
push 6
push str.format_pix24__d__pix32__d_n
call fcn.00406d50
mov ecx, dword [esp + 0xe4]
add esp, 0xc
push ecx
push str.format__d_n
call fcn.00406d50
add esp, 8
lea edx, [esp + 0xd8]
lea ecx, [esp + 0x1d8]
push 1
push ebx
push edx
call fcn.00421710
lea ecx, [esp + 0x1d8]
call fcn.00421840
lea eax, [esp + 0x1d8]
lea ecx, [esp + 0x12c]
push eax
call fcn.004201a0
mov al, byte [edi + 0x16]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp al, 2
mov dword [esp + 0x138], ebx
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x150], edx
jne 0x41ef20
lea esi, [edi + 0x30]
mov ecx, 0x19
lea edi, [esp + 0x15c]
mov byte [esp + 0x142], al
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1bc], ebx
jmp 0x41ef3c
cmp al, 1
jne 0x41ef3c
lea esi, [edi + 0x30]
mov ecx, 0x1f
lea edi, [esp + 0x15c]
mov byte [esp + 0x142], al
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 4]
mov ecx, 6
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
sub eax, edi
mov edi, dword [esp + 0x44]
sub ecx, esi
mov esi, dword [esp + 0x48]
sar eax, 2
mov dword [esp + 0x50], eax
lea eax, [esp + 0x40]
sar edx, 2
sar ecx, 2
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp]
push eax
push ebx
push ebx
push ecx
sar edi, 2
sar esi, 2
sar edx, 2
lea ecx, [esp + 0x31c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edx
call fcn.004335b0
lea eax, [esp + 0x12c]
lea edx, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x310]
mov dword [esp + 0x38c], edx
call fcn.004336f0
lea ecx, [esp + 0x30c]
call fcn.004336a0
mov eax, dword [esp + 0x208]
mov edx, dword [esp + 0x204]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0xa8], ebx
call fcn.00407740
mov cx, word [esp + 0x64]
mov dx, word [esp + 0x68]
mov ax, word [esp + 0x6c]
mov word [esp + 0x94], cx
mov cx, word [esp + 0x70]
mov word [esp + 0x96], dx
mov dx, word [esp + 0x74]
mov word [esp + 0x9a], cx
mov word [esp + 0x98], ax
mov ax, word [esp + 0x78]
lea ecx, [esp + 0x64]
mov word [esp + 0x9c], dx
push ecx
mov word [esp + 0xa2], ax
call fcn.00407800
cmp eax, 1
mov eax, dword [esp + 0x210]
setle dl
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0xa4], dl
lea eax, [esp + 0x68]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.00407740
mov ax, word [esp + 0x74]
mov cx, word [esp + 0x78]
mov dx, word [esp + 0x7c]
mov word [esp + 0xc8], ax
mov ax, word [esp + 0x80]
mov word [esp + 0xca], cx
mov cx, word [esp + 0x84]
mov word [esp + 0xce], ax
mov word [esp + 0xcc], dx
mov dx, word [esp + 0x88]
lea eax, [esp + 0x74]
mov word [esp + 0xd0], cx
push eax
mov word [esp + 0xd6], dx
call fcn.00407800
add esp, 0x20
cmp eax, 1
setle cl
lea edx, [esp + 0x12c]
mov byte [esp + 0xb8], cl
mov dword [esp + 0xa4], edx
lea ecx, [esp + 0x12c]
push ebx
lea edx, [esp + 0x7c]
lea eax, [esp + 0x130]
push ecx
push edx
lea ecx, [esp + 0x1e4]
mov byte [esp + 0xc6], 0
mov byte [esp + 0xa2], 0
mov byte [esp + 0xc5], 1
mov byte [esp + 0xa1], 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x90], ebx
call fcn.004218f0
lea ecx, [esp + 0x1d8]
call fcn.00422f20
lea ecx, [esp + 0x12c]
call fcn.004201d0
lea eax, [esp + 0xd8]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [ebp + 0x30]
call fcn.00463ee0
lea ecx, [esp + 0x1d8]
call fcn.00421680
lea ecx, [esp + 0xd8]
call fcn.0045d4e0
jmp 0x41eba4
mov eax, dword [esp + 0xfcc]
pop edi
pop esi
pop ebx
test eax, eax
je 0x41f1ff
mov edx, dword [ebp + 0x30]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_EndPath]
mov edx, dword [ebp + 0x30]
push 1
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_SelectClipPath]
pop ebp
add esp, 0xfb8
ret 4