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

Disassembly:
sub esp, 0x4b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c4]
push edi
push 1
push str..bmp
push esi
call fcn.0042b280
add esp, 0xc
test eax, eax
je 0x41e9db
mov ebp, dword [esp + 0x4c4]
lea eax, [esp + 0x74]
push ebp
push 1
push 2
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x90]
push 4
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0xa4]
push 2
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0xb6]
push 2
push eax
call fcn.0050a0f8
add esp, 0x40
lea ecx, [esp + 0x80]
push ebp
push 1
push 4
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x64]
push 4
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x78]
push 4
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x8c]
push 4
push ecx
call fcn.0050a0f8
add esp, 0x40
lea edx, [esp + 0x58]
push ebp
push 1
push 2
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x72]
push 2
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x84]
push 4
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x98]
push 4
push edx
call fcn.0050a0f8
add esp, 0x40
lea eax, [esp + 0x64]
push ebp
push 1
push 4
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x80]
push 4
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x94]
push 4
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0xa8]
push 4
push eax
call fcn.0050a0f8
add esp, 0x40
push 0x68
call fcn.005095d5
mov ecx, dword [esp + 0x54]
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [ebx + 0x20], ecx
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x24], edx
mov ecx, dword [esp + 0x5a]
cmp cx, 8
jbe 0x41e9bc
xor esi, esi
mov dword [ebx + 0x28], esi
jmp 0x41eb2f
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x41e9cc
mov dword [ebx + 0x28], eax
jmp 0x41eb2d
mov eax, 1
shl eax, cl
mov dword [ebx + 0x28], eax
jmp 0x41eb2d
push 1
push str..lbt
push esi
call fcn.0042b280
add esp, 0xc
test eax, eax
je 0x41ea4e
mov ebp, dword [esp + 0x4c4]
lea ecx, [esp + 0x84]
push ebp
push 1
push 0x10
push ecx
call fcn.0050a0f8
push 0x68
call fcn.005095d5
mov edx, dword [esp + 0x9c]
mov ebx, eax
add esp, 0x14
xor esi, esi
mov dword [ebx + 0x20], edx
mov eax, dword [esp + 0x8c]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x90]
cmp eax, 0x18
mov dword [esp + 0x2c], ebx
jne 0x41ea42
mov dword [ebx + 0x28], esi
jmp 0x41eb2f
mov dword [ebx + 0x28], 0x100
jmp 0x41eb2f
push 1
push str..LBM
push esi
call fcn.0042b280
add esp, 0xc
test eax, eax
je 0x41eb3d
mov ebp, dword [esp + 0x4c4]
lea ecx, [esp + 0x94]
push ebp
push 1
push 0x1c
push ecx
call fcn.0050a0f8
mov edx, dword [esp + 0xb8]
lea eax, [edx*8]
push eax
call fcn.005095d5
mov ecx, dword [esp + 0xbc]
push ebp
mov esi, eax
lea edx, [ecx + ecx]
push edx
push 4
push esi
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0xdc]
push 0xe
push eax
call fcn.0050a0f8
mov ecx, dword [esp + 0xee]
mov eax, dword [esp + 0xe0]
add esp, 0x34
test eax, eax
lea ebx, [ecx - 0xe]
je 0x41ead9
sub ebx, 0x400
push ebx
call fcn.005095d5
push ebp
mov edi, eax
push ebx
push 1
push edi
call fcn.0050a0f8
push 0x68
call fcn.005095d5
mov edx, dword [edi + 4]
mov ebx, eax
add esp, 0x18
mov dword [esp + 0x2c], ebx
mov dword [ebx + 0x20], edx
mov eax, dword [edi + 8]
mov dword [ebx + 0x24], eax
cmp word [edi + 0xe], 8
jne 0x41eb17
mov dword [ebx + 0x28], 0x100
jmp 0x41eb1e
mov dword [ebx + 0x28], 0
push esi
call fcn.005089dd
push edi
call fcn.005089dd
add esp, 8
xor esi, esi
cmp dword [ebx + 0x28], esi
jne 0x41eb4a
push ebx
call fcn.005089dd
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4b0
ret
cmp dword [esp + 0x4cc], esi
je 0x41eb89
mov edx, dword [esp + 0x4d8]
mov ecx, dword [esp + 0x4d4]
mov eax, dword [esp + 0x4d0]
push edx
push ecx
push eax
mov dword [ebx + 0x2c], 1
mov byte [ebx + 0x30], al
mov byte [ebx + 0x31], cl
mov byte [ebx + 0x32], dl
call fcn.0040e550
add esp, 0xc
mov dword [esp + 0x48], eax
jmp 0x41eb90
mov dword [ebx + 0x2c], 0xffffffff
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x64], esi
cmp ecx, 0x100
mov dword [esp + 0x20], ecx
jge 0x41ebd5
mov eax, 0x100
cdq
fldln2
idiv ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fyl2x
fldln2
fld qword [0x5a8468]
fyl2x
fdivp st(1)
fadd qword [0x5a8460]
call fcn.00509960
add eax, 8
mov dword [ebx + 0x48], eax
jmp 0x41ebdc
mov dword [ebx + 0x48], 8
mov ecx, dword [ebx + 0x24]
cmp ecx, 0x100
jge 0x41ec1a
mov eax, 0x100
cdq
fldln2
idiv ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fyl2x
fldln2
fld qword [0x5a8468]
fyl2x
fdivp st(1)
fadd qword [0x5a8460]
call fcn.00509960
add eax, 0x18
mov dword [ebx + 0x4c], eax
jmp 0x41ec21
mov dword [ebx + 0x4c], 0x18
fldln2
fild dword [esp + 0x20]
fyl2x
fldln2
fld qword [0x5a8468]
fyl2x
fdivp st(1)
fadd qword [0x5a8460]
call fcn.00509960
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x60], esi
mov eax, dword [0x7f18e4]
cmp eax, 1
mov ecx, 3
jne 0x41ec7b
mov edi, 0xb
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 2
mov dword [esp + 0x1c], 5
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], ecx
jmp 0x41ecdd
cmp eax, 2
jne 0x41ec8c
mov dword [esp + 0x20], 0xb
xor edi, edi
jmp 0x41ec61
cmp eax, ecx
jne 0x41ec9f
mov edi, 0xa
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
jmp 0x41ec69
cmp eax, 4
jne 0x41ecb4
mov dword [esp + 0x20], 0xa
xor edi, edi
mov dword [esp + 0x24], ecx
jmp 0x41ec69
cmp eax, 5
jne 0x41ecd9
mov eax, 4
mov edi, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
jmp 0x41ecdd
mov edi, dword [esp + 0x48]
mov ecx, dword [ebx + 0x28]
shl ecx, 5
push ecx
call fcn.005095d5
mov dword [ebx + 0x54], eax
mov esi, eax
mov eax, dword [0x7f18e4]
add esp, 4
cmp eax, 5
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x18], 0
jne 0x41ee70
test eax, eax
jle 0x41efd1
push ebp
push 1
lea edx, [esp + 0x44]
push 1
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x58]
push 1
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x6c]
push 1
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x6f]
push 1
push edx
call fcn.0050a0f8
add esp, 0x40
mov dword [esp + 0x30], 0
fild dword [esp + 0x30]
mov eax, dword [esp + 0x44]
and eax, 0xff
fmul dword [0x5a845c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul st(1)
call fcn.00509960
mov cl, byte [esp + 0x28]
shr al, cl
mov ecx, edi
movzx bp, al
shl ebp, cl
mov ecx, dword [esp + 0x40]
and ecx, 0xff
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul st(1)
call fcn.00509960
mov cl, byte [esp + 0x24]
xor dx, dx
shr al, cl
mov ecx, dword [esp + 0x1c]
mov dl, al
mov eax, dword [esp + 0x3c]
and eax, 0xff
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
shl edx, cl
fmul st(1)
add ebp, edx
call fcn.00509960
mov bl, byte [esp + 0x38]
mov edx, dword [esp + 0x20]
mov cl, bl
add esi, 2
shr al, cl
mov ecx, edx
fstp st(0)
movzx ax, al
shl eax, cl
add ebp, eax
mov eax, dword [esp + 0x30]
mov word [esi - 2], bp
inc eax
cmp eax, 0xf
mov dword [esp + 0x30], eax
jl 0x41ed59
mov al, byte [esp + 0x44]
mov cl, byte [esp + 0x28]
shr al, cl
mov ecx, edi
mov dword [esp + 0x14], edx
add esi, 2
movzx ax, al
shl eax, cl
mov cl, byte [esp + 0x40]
mov dl, cl
mov cl, byte [esp + 0x24]
shr dl, cl
mov ecx, dword [esp + 0x1c]
movzx bp, dl
shl ebp, cl
mov cl, byte [esp + 0x3c]
mov dl, cl
mov cl, bl
xor bx, bx
shr dl, cl
add eax, ebp
mov ebp, dword [esp + 0x4c4]
mov bl, dl
mov edx, dword [esp + 0x14]
mov ecx, edx
shl ebx, cl
add eax, ebx
mov ebx, dword [esp + 0x2c]
mov word [esi - 2], ax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x41ed12
jmp 0x41efd1
test eax, eax
jle 0x41efd1
push ebp
push 1
lea ecx, [esp + 0x44]
push 1
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x58]
push 1
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x6c]
push 1
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x6f]
push 1
push ecx
call fcn.0050a0f8
add esp, 0x40
mov dword [esp + 0x30], 0
fild dword [esp + 0x30]
mov edx, dword [esp + 0x44]
and edx, 0xff
fmul dword [0x5a845c]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul st(1)
call fcn.00509960
mov cl, byte [esp + 0x28]
shr al, cl
mov ecx, edi
movzx bp, al
mov eax, dword [esp + 0x40]
and eax, 0xff
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
shl ebp, cl
fmul st(1)
call fcn.00509960
mov cl, byte [esp + 0x24]
xor dx, dx
shr al, cl
mov ecx, dword [esp + 0x1c]
mov dl, al
mov eax, dword [esp + 0x3c]
and eax, 0xff
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
shl edx, cl
fmul st(1)
add ebp, edx
call fcn.00509960
mov bl, byte [esp + 0x38]
mov edx, dword [esp + 0x20]
mov cl, bl
add esi, 2
shr al, cl
mov ecx, edx
fstp st(0)
movzx ax, al
shl eax, cl
add ebp, eax
mov eax, dword [esp + 0x30]
mov word [esi - 2], bp
inc eax
cmp eax, 0xf
mov dword [esp + 0x30], eax
jl 0x41eebf
mov al, byte [esp + 0x44]
mov cl, byte [esp + 0x28]
shr al, cl
mov ecx, edi
mov dword [esp + 0x14], edx
add esi, 2
movzx ax, al
shl eax, cl
mov cl, byte [esp + 0x40]
mov dl, cl
mov cl, byte [esp + 0x24]
shr dl, cl
mov ecx, dword [esp + 0x1c]
movzx bp, dl
shl ebp, cl
mov cl, byte [esp + 0x3c]
mov dl, cl
mov cl, bl
xor bx, bx
shr dl, cl
add eax, ebp
mov ebp, dword [esp + 0x4c4]
mov bl, dl
mov edx, dword [esp + 0x14]
mov ecx, edx
shl ebx, cl
add eax, ebx
mov ebx, dword [esp + 0x2c]
mov word [esi - 2], ax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x41ee78
mov ecx, dword [ebx + 0x54]
mov esi, dword [ebx + 0x28]
mov eax, 1
mov dword [esp + 0xc0], 0
lea edx, [ecx + 0x3e]
cmp esi, eax
mov dword [esp + 0x2c], edx
jle 0x41f03b
add ecx, 0x1e
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
jle 0x41f017
mov edi, dword [esp + 0x2c]
mov di, word [edi]
cmp word [edx], di
je 0x41f017
add edx, 0x20
inc ecx
cmp ecx, eax
jl 0x41f00a
cmp ecx, eax
jne 0x41f024
mov dword [esp + eax*4 + 0xc0], eax
jmp 0x41f02b
mov dword [esp + eax*4 + 0xc0], ecx
mov edi, dword [esp + 0x2c]
add edi, 0x20
inc eax
cmp eax, esi
mov dword [esp + 0x2c], edi
jl 0x41eff9
mov eax, dword [esp + 0x4cc]
test eax, eax
je 0x41f06c
mov ecx, dword [ebx + 0x54]
xor eax, eax
add ecx, 0x1e
test esi, esi
jle 0x41f06c
mov edi, dword [esp + 0x48]
xor edx, edx
mov dx, word [ecx]
cmp edx, edi
je 0x41f069
add ecx, 0x20
inc eax
cmp eax, esi
jl 0x41f052
jmp 0x41f06c
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x24]
imul eax, dword [ebx + 0x20]
push eax
call fcn.005095d5
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x20]
push ebp
push ecx
push edx
push eax
mov dword [ebx + 0x58], eax
call fcn.0050a0f8
mov eax, dword [ebx + 0x24]
add esp, 0x14
imul eax, dword [ebx + 0x20]
xor esi, esi
test eax, eax
jle 0x41f0b4
mov ecx, dword [ebx + 0x58]
xor edx, edx
mov dl, byte [ecx + esi]
lea edi, [ecx + esi]
inc esi
mov cl, byte [esp + edx*4 + 0xc0]
cmp esi, eax
mov byte [edi], cl
jl 0x41f09b
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x4b0
ret