Function at 0x455140
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd24
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x455170
mov eax, dword [ecx + 0x38]
mov ecx, dword [eax + 0x48]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.GDI32.dll_BeginPath]
lea ebx, [ebx]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x2c]
xor esi, esi
test edx, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
je 0x455a84
lea esp, [esp]
mov eax, dword [esp + 0x20]
shl eax, 2
mov edi, 0xffffffdc
xor ecx, ecx
sub edi, edx
mov dword [esp + 0x10], eax
lea eax, [edx + 0x24]
mov dword [esp + 0x24], edi
jmp 0x4551b0
mov edi, dword [eax]
test edi, edi
je 0x4551da
test esi, esi
je 0x4551ca
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + esi + 0x24]
mov edi, dword [edi + 0x1c]
cmp edi, dword [ebx + 0x1c]
jae 0x4551da
mov edi, dword [esp + 0x24]
add edi, eax
mov esi, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edi
inc ecx
add eax, 4
cmp ecx, 2
jl 0x4551b0
mov edx, dword [edx]
test edx, edx
jne 0x455190
test esi, esi
mov dword [esp + 0x24], esi
je 0x455a80
cmp dword [esp + 0x20], 1
jne 0x455208
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov edx, dword [esi + 0x24]
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x10], edx
cmp dword [esi + 0x30], 2
sete al
mov dword [edi + 0x24], eax
test eax, eax
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x48]
mov edx, dword [ecx + 0x24]
je 0x455230
push 2
jmp 0x455232
push 1
push edx
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x455250
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x48]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.GDI32.dll_BeginPath]
lea eax, [esp + 0x28]
push eax
call fcn.0043bfe0
add esp, 4
lea ecx, [ecx]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esp + 0xc]
push 0
push ecx
mov ecx, dword [eax + 0x38]
push edx
mov edx, dword [ecx + 0x48]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edi, edi
lea ecx, [esp + 0x28]
push ecx
lea ebx, [esi + 8]
push ebx
call fcn.0043c170
lea edx, [esp + 0x30]
push edx
lea eax, [esi + 0x10]
push eax
call fcn.0043c170
lea ecx, [esp + 0x38]
push ecx
lea edi, [esi + 0x18]
push edi
call fcn.0043c170
mov eax, dword [esi + 0x20]
add esp, 0x18
test eax, eax
je 0x4552d1
mov edx, dword [esi + 0x1c]
mov ebx, dword [esp + 0xc]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x38]
push edx
mov edx, dword [ecx + 0x48]
push eax
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.GDI32.dll_LineTo]
jmp 0x45532f
lea ecx, [esp + 0x138]
push ecx
push ebx
call fcn.0041ef30
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x38]
add esp, 8
xor eax, eax
jmp 0x4552f0
mov edx, dword [esp + eax + 0x140]
mov dword [esp + eax + 0x104], edx
mov edx, dword [esp + eax + 0x144]
mov dword [esp + eax + 0x108], edx
add eax, 8
cmp eax, 0x18
jl 0x4552f0
mov ecx, dword [ecx + 0x48]
mov edx, dword [ecx + 0x24]
push 3
lea eax, [esp + 0x108]
push eax
push edx
call dword [sym.imp.GDI32.dll_PolyBezierTo]
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push edi
mov ecx, ebx
mov dword [esi + 0x24], 0
call fcn.00455050
mov esi, eax
test esi, esi
jne 0x455280
push eax
push edi
mov ecx, ebx
call fcn.00455050
mov esi, eax
test esi, esi
jne 0x455260
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0x48]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.GDI32.dll_EndPath]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x455170
mov esi, edi
mov al, byte [esi + 0x24]
test al, al
je 0x455393
cmp word [esi + 0xa], 0
je 0x455170
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x18], ecx
mov ecx, edx
shr ecx, 0x10
xor edi, edi
cmp ecx, 0xff
mov dword [esp + 0x1c], edx
jge 0x4553f6
cmp ecx, edi
jle 0x4553f8
movzx eax, dx
imul eax, eax, 0xff
cdq
idiv ecx
mov word [esp + 0x1e], 0xff
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x18]
shr eax, 0x10
imul eax, eax, 0xff
cdq
idiv ecx
mov word [esp + 0x1a], ax
movzx eax, word [esp + 0x18]
imul eax, eax, 0xff
cdq
idiv ecx
mov word [esp + 0x18], ax
jmp 0x455409
cmp ecx, edi
jne 0x455409
mov word [esp + 0x1c], di
mov word [esp + 0x1a], di
mov word [esp + 0x18], di
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x2c]
cmp eax, edi
je 0x455435
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1a]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [edx + 0x38]
push eax
call fcn.004eede0
jmp 0x455170
mov al, byte [esi + 0x26]
test al, al
jne 0x45545c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [eax + 0x38]
push edx
call fcn.004eee60
jmp 0x455170
cmp al, 1
mov ebx, 2
jne 0x45549f
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
sub edx, ecx
nop
mov edi, edx
mov ecx, ebx
sar edi, cl
cmp edi, esi
jl 0x45549c
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
sub edi, ecx
mov ecx, ebx
sar edi, cl
cmp edi, eax
jge 0x45549f
dec ebx
jne 0x455480
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x38]
push eax
mov edi, 6
mov byte [esp + 0x1b], 0
call fcn.004eef40
test al, al
je 0x4554c8
mov edi, 7
mov byte [esp + 0x17], 1
push 0x40
call fcn.0043f080
add esp, 4
test eax, eax
je 0x455170
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub edx, ecx
push 0
push 7
push 0
mov ecx, ebx
sar edx, cl
mov ecx, dword [esp + 0x34]
push edi
push edx
mov edx, dword [esp + 0x40]
sub edx, ecx
mov ecx, ebx
sar edx, cl
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ecx + 0x34]
push edx
mov ecx, eax
call fcn.004de6f0
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x455170
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4555a1
mov ebx, 3
lea esp, [esp]
test esi, esi
je 0x455544
mov ecx, esi
call fcn.004de740
push esi
call fcn.0043f0a0
add esp, 4
push 0x40
call fcn.0043f080
add esp, 4
test eax, eax
je 0x4556a1
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub edx, ecx
push 0
push 7
push 0
mov ecx, ebx
sar edx, cl
mov ecx, dword [esp + 0x34]
push edi
push edx
mov edx, dword [esp + 0x40]
sub edx, ecx
mov ecx, ebx
sar edx, cl
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ecx + 0x34]
push edx
mov ecx, eax
call fcn.004de6f0
mov esi, eax
test esi, esi
je 0x455597
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x45559d
inc ebx
cmp ebx, 7
jl 0x455530
mov dword [esp + 0x20], esi
test esi, esi
je 0x455170
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x455a6b
mov ecx, esi
call fcn.004ddf40
test eax, eax
je 0x455a6b
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [esp + 0x15c]
call fcn.00466140
mov edx, dword [edi + 0x34]
push 1
push 0
push esi
lea ecx, [esp + 0x164]
mov dword [esp + 0x1e0], edx
call fcn.004621e0
lea ecx, [esp + 0x158]
call fcn.0045aa70
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0xcc]
call fcn.00458ea0
mov eax, dword [esp + 0x10]
mov al, byte [eax + 0x26]
cmp al, 2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xe4], 0
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
jne 0x4556a8
push 2
lea ecx, [esp + 0xcc]
call fcn.00458fa0
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x38]
mov edi, dword [esp + 0x100]
mov ecx, 0x26
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x100]
mov dl, byte [ecx + 0x3c]
xor eax, eax
test dl, dl
jbe 0x455695
jmp 0x455680
mov byte [ecx + eax*4 + 0x53], 0xff
mov ecx, dword [esp + 0x100]
movzx edx, byte [ecx + 0x3c]
inc eax
cmp eax, edx
jl 0x455680
mov dword [ecx + 0x90], 0
jmp 0x4556cf
xor esi, esi
jmp 0x455597
cmp al, 1
jne 0x4556d3
push 1
lea ecx, [esp + 0xcc]
call fcn.00458fa0
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x38]
mov edi, dword [esp + 0x100]
mov ecx, 0x26
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xc]
mov ecx, dword [edi + 0x34]
push ecx
lea edx, [esp + 0x120]
push edx
call fcn.0043d240
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x30]
add esp, 8
test eax, eax
je 0x455710
call fcn.00458f40
mov ecx, dword [edi + 0x34]
push ecx
lea edx, [esp + 0x120]
push edx
lea ecx, [eax + 0x10]
push ecx
push eax
call fcn.0043d650
add esp, 0x10
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x38]
push edx
add esi, 4
mov ecx, 7
lea edi, [esp + 0x3c]
lea eax, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
push ecx
call fcn.0043ce30
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
sub ecx, eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x34]
sub esi, edx
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x48], esi
je 0x4557b3
call fcn.004a7130
test al, al
je 0x4557b3
mov edx, 1
mov ecx, ebx
shl edx, cl
mov dword [esp + 0x50], 1
xor esi, esi
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fdivr dword [0x5d7850]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0x40]
fmul dword [esp + 0x44]
fstp dword [esp + 0x44]
jmp 0x4557e3
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, ebx
sar esi, cl
sar edi, cl
sar edx, cl
sar eax, cl
mov dword [esp + 0x3c], esi
xor esi, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], esi
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ecx, ebx
sar edi, cl
lea eax, [esp + 0x38]
push eax
push esi
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x14]
sar edx, cl
mov ecx, dword [edi]
push esi
push esi
push ecx
lea ecx, [esp + 0x284]
mov dword [esp + 0x60], edx
call fcn.004913b0
push esi
push esi
push 1
lea eax, [esp + 0xd4]
lea edx, [esp + 0x164]
push eax
lea ecx, [esp + 0x280]
mov dword [esp + 0x2e8], edx
call fcn.00495280
lea ecx, [esp + 0x270]
call fcn.004914f0
mov eax, dword [esp + 0x1b4]
mov edx, dword [esp + 0x1b0]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1a8]
lea ecx, [esp + 0x64]
mov dword [esp + 0x60], edx
push ecx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0xb0], esi
call fcn.0041ed40
mov cx, word [esp + 0x70]
mov dx, word [esp + 0x74]
mov ax, word [esp + 0x78]
mov word [esp + 0x9c], cx
mov cx, word [esp + 0x7c]
mov word [esp + 0xa2], cx
mov word [esp + 0x9e], dx
mov dx, word [esp + 0x80]
mov word [esp + 0xa0], ax
mov ax, word [esp + 0x84]
lea ecx, [esp + 0x70]
push ecx
mov word [esp + 0xa8], dx
mov word [esp + 0xaa], ax
call fcn.0041f270
cmp eax, 1
mov eax, dword [esp + 0x1bc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
setle dl
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xb0], dl
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.0041ed40
mov ax, word [esp + 0x80]
mov cx, word [esp + 0x84]
mov dx, word [esp + 0x88]
mov word [esp + 0xd0], ax
mov ax, word [esp + 0x8c]
mov word [esp + 0xd2], cx
mov word [esp + 0xd4], dx
mov word [esp + 0xd6], ax
mov cx, word [esp + 0x90]
mov dx, word [esp + 0x94]
lea eax, [esp + 0x80]
push eax
mov word [esp + 0xdc], cx
mov word [esp + 0xde], dx
call fcn.0041f270
add esp, 0x20
cmp eax, 1
setle cl
lea edx, [esp + 0xc8]
push esi
mov byte [esp + 0xc4], cl
mov ecx, edx
push esi
mov eax, edx
mov dword [esp + 0xb4], edx
push ecx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x168]
mov byte [esp + 0xd2], 0
mov byte [esp + 0xae], 0
mov byte [esp + 0xd1], 1
mov byte [esp + 0xad], 1
mov dword [esp + 0x98], eax
mov dword [esp + 0xc0], esi
mov dword [esp + 0x9c], esi
call fcn.004675f0
lea ecx, [esp + 0x158]
call fcn.004670b0
lea ecx, [esp + 0xc8]
call fcn.004620a0
mov al, byte [esp + 0x17]
test al, al
mov esi, dword [esp + 0x20]
je 0x455a3a
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0x34]
push eax
push esi
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [edi + 0x38]
push edx
call fcn.004eef60
jmp 0x455a48
mov ecx, dword [edi + 0x38]
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.004eeec0
mov ecx, esi
call fcn.004ddf60
lea ecx, [esp + 0xc8]
call fcn.00465710
lea ecx, [esp + 0x158]
call fcn.00467580
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.004de740
push esi
call fcn.0043f0a0
add esp, 4
jmp 0x455170
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 8]
test eax, eax
je 0x455aad
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx + 0x48]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.GDI32.dll_EndPath]
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx + 0x48]
mov eax, dword [edx + 0x24]
push 1
push eax
call dword [sym.imp.GDI32.dll_SelectClipPath]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x455ac6
mov esi, dword [eax + 4]
push eax
call fcn.0043f0a0
add esp, 4
test esi, esi
mov eax, esi
jne 0x455ab4
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4