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

Disassembly:
push 0xffffffffffffffff
push 0x438a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
push edi
push 0x116
mov esi, ecx
call fcn.004046e0
push 0x116
mov ecx, esi
call fcn.004047e0
mov al, byte [esi + 0x41e6]
mov cx, word [esi + 0x41e0]
mov edi, dword [esp + 0x7c]
mov dl, byte [esi + 0x41e7]
mov byte [esp + 0xa], al
mov ax, word [esi + 0x41e2]
mov word [esp + 0x3c], cx
mov cl, byte [esi + 0x41e8]
mov word [esp + 0x34], ax
mov eax, dword [esp + 0x84]
mov byte [esp + 8], cl
lea ecx, [edi + eax]
cmp edi, ecx
mov byte [esp + 9], dl
mov dx, word [esi + 0x41e4]
mov word [esp + 0x38], dx
mov dword [esp + 0x28], edi
mov dword [esp + 0x54], ecx
jge 0x4120b6
mov edx, dword [esp + 0x78]
lea ecx, [esi + 0x1e4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x80]
push ebx
add edx, ecx
push ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x4c]
call fcn.004181a0
mov eax, dword [esi + 0x3a1c]
mov ebp, dword [esi + 0x3a20]
push eax
push ebp
mov dword [esp + 0x80], 0
mov dword [esp + 0x60], ebp
mov dword [esp + 0x74], ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x3a24]
mov ebx, dword [esi + 0x3a20]
push 0
push eax
push ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x70], ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esp + 0x80]
cmp eax, dword [esp + 0x48]
mov byte [esp + 0x78], 2
mov dword [esp + 0x84], eax
jge 0x41205c
mov eax, dword [esp + 0x88]
mov dword [esp + 0x2c], eax
jmp 0x411ca0
mov eax, dword [esp + 0x2c]
mov edi, edi
mov ebx, 0x10
cmp eax, ebx
mov ebp, ebx
jge 0x411cad
mov ebp, eax
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jge 0x411cb8
mov ebx, eax
push 1
lea edx, [esp + 0x17]
push edx
mov ecx, esi
call fcn.00404470
mov al, byte [esp + 0x13]
test al, 1
je 0x411e07
mov ecx, dword [esi + 0x1c4]
mov eax, ebx
imul eax, ebp
push eax
push ecx
mov ecx, esi
call fcn.00404470
mov edx, dword [esi + 0x1c4]
add ebx, edi
cmp edi, ebx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ebx
jge 0x41202c
mov ecx, dword [esp + 0x84]
lea eax, [ecx + ebp]
mov dword [esp + 0x24], eax
jmp 0x411d20
mov ecx, dword [esp + 0x84]
lea esp, [esp]
cmp ecx, eax
mov ebp, ecx
jge 0x411df1
movzx eax, byte [esp + 0x10]
movzx ecx, byte [esp + 0x11]
movzx edx, byte [esp + 0x12]
movzx ebx, word [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
lea ebx, [ebx]
mov eax, dword [esp + 0x8c]
movzx edi, byte [eax]
mov ecx, dword [esp + 0x18]
mov eax, edi
shr eax, cl
movzx ecx, word [esp + 0x40]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
mov ecx, dword [esp + 0x1c]
movzx eax, al
or eax, 0x200
shl eax, 8
mov dword [esp + 0x50], eax
mov eax, edi
shr eax, cl
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
movzx ecx, al
mov eax, dword [esp + 0x50]
or eax, ecx
mov ecx, dword [esp + 0x20]
shl eax, 8
mov dword [esp + 0x50], eax
mov eax, edi
shr eax, cl
movzx ecx, word [esp + 0x44]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
mov edi, dword [esp + 0x38]
movzx edx, al
mov eax, dword [esp + 0x50]
or eax, edx
push eax
mov eax, dword [esi + 0x3a20]
push edi
push ebp
push eax
call dword [sym.imp.GDI32.dll_SetPixelV]
inc dword [esp + 0x8c]
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jl 0x411d50
mov ebx, dword [esp + 0x28]
inc edi
cmp edi, ebx
mov dword [esp + 0x38], edi
jl 0x411d15
mov edi, dword [esp + 0x30]
jmp 0x41202c
test al, 0x20
je 0x411f8e
push 2
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00404470
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c4]
movzx dx, ah
mov dh, al
mov eax, edx
mov dword [esp + 0x14], eax
movzx eax, ax
push eax
push ecx
mov ecx, esi
call fcn.00404470
movzx ecx, word [esp + 0x14]
mov eax, ebx
imul eax, ebp
lea edx, [esi + 0x2b8]
push edx
mov edx, dword [esi + 0x274]
add eax, 2
push eax
mov eax, dword [esi + 0x1c4]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00410850
test al, al
je 0x41202c
mov ecx, dword [esi + 0x274]
add ebx, edi
cmp edi, ebx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ebx
jge 0x41202c
mov ecx, dword [esp + 0x84]
lea eax, [ecx + ebp]
mov dword [esp + 0x24], eax
nop
cmp ecx, eax
mov ebp, ecx
jge 0x411f78
movzx edx, byte [esp + 0x10]
movzx eax, byte [esp + 0x11]
movzx ecx, byte [esp + 0x12]
movzx ebx, word [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x8c]
movzx edi, byte [edx]
mov ecx, dword [esp + 0x18]
mov eax, edi
shr eax, cl
movzx ecx, word [esp + 0x40]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
mov ecx, dword [esp + 0x1c]
movzx eax, al
or eax, 0x200
shl eax, 8
mov dword [esp + 0x50], eax
mov eax, edi
shr eax, cl
mov ecx, dword [esp + 0x50]
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
movzx eax, al
or ecx, eax
shl ecx, 8
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x20]
mov eax, edi
shr eax, cl
movzx ecx, word [esp + 0x44]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
mov edi, dword [esp + 0x38]
mov edx, dword [esi + 0x3a20]
movzx ecx, al
mov eax, dword [esp + 0x50]
or eax, ecx
push eax
push edi
push ebp
push edx
call dword [sym.imp.GDI32.dll_SetPixelV]
inc dword [esp + 0x8c]
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jl 0x411ed0
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x84]
inc edi
cmp edi, ebx
mov dword [esp + 0x38], edi
jl 0x411ea0
mov edi, dword [esp + 0x30]
jmp 0x41202c
test al, 0x40
je 0x412016
push 2
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00404470
mov eax, dword [esp + 0x14]
movzx cx, ah
mov ch, al
mov eax, ecx
movzx edx, ax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1c4]
push edx
push eax
mov ecx, esi
call fcn.00404470
movzx eax, word [esp + 0x14]
mov edx, ebx
imul edx, ebp
lea ecx, [esi + 0x2f0]
push ecx
mov ecx, dword [esi + 0x274]
add edx, 0x16
push edx
mov edx, dword [esi + 0x1c4]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00410850
test al, al
je 0x41202c
movzx ecx, byte [esp + 0x13]
mov eax, dword [esi + 0x274]
mov edx, dword [esp + 0x84]
push eax
push ecx
push ebx
push ebp
push edi
push edx
mov ecx, esi
call fcn.00410c10
jmp 0x41202c
mov ecx, dword [esp + 0x84]
movzx eax, al
push eax
push ebx
push ebp
push edi
push ecx
mov ecx, esi
call fcn.004108e0
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
add eax, 0x10
sub edx, 0x10
cmp eax, ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x2c], edx
jl 0x411c9a
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
push 0
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esp + 0x68]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x78], 0xffffffff
call fcn.004181b0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
add edi, 0x10
sub ecx, 0x10
cmp edi, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
jl 0x411c13
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10