Function at 0x481520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x526ca7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], 0
lea ebp, [esi + 0x590]
mov dword [esp + 0x1c], ebp
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x569c90]
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x3e0]
xor edi, edi
test eax, eax
mov byte [esp + 0x28], 3
jle 0x481724
lea ecx, [esp + 0x14]
push edi
push ecx
lea ecx, [esi + 0x3d8]
call fcn.0045ffb0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call fcn.00507e73
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.00507d3a
mov edx, dword [str.TripleDES]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004f298c
add esp, 8
test eax, eax
jne 0x4815f9
mov eax, dword [esi + 0x3ec]
test eax, eax
je 0x4815f9
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4815e9
push 0x2c
lea ecx, [esp + 0x10]
call fcn.0050813d
mov edx, dword [str.3des_cbc]
lea ecx, [esp + 0xc]
push edx
call fcn.00508116
mov eax, dword [str.Blowfish]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004f298c
add esp, 8
test eax, eax
jne 0x48163f
mov eax, dword [esi + 0x3f0]
test eax, eax
je 0x48163f
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x481630
push 0x2c
lea ecx, [esp + 0x10]
call fcn.0050813d
mov eax, dword [str.blowfish_cbc]
lea ecx, [esp + 0xc]
push eax
call fcn.00508116
mov ecx, dword [str.Twofish]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.004f298c
add esp, 8
test eax, eax
jne 0x481687
mov eax, dword [esi + 0x3f4]
test eax, eax
je 0x481687
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x481677
push 0x2c
lea ecx, [esp + 0x10]
call fcn.0050813d
mov ecx, dword [str.twofish_cbc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00508116
mov edx, dword [str.ARCFOUR]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004f298c
add esp, 8
test eax, eax
jne 0x4816cf
mov eax, dword [esi + 0x3f8]
test eax, eax
je 0x4816cf
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4816bf
push 0x2c
lea ecx, [esp + 0x10]
call fcn.0050813d
mov edx, dword [str.arcfour]
lea ecx, [esp + 0xc]
push edx
call fcn.00508116
mov eax, dword [str.CAST128]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004f298c
add esp, 8
test eax, eax
jne 0x481715
mov eax, dword [esi + 0x3fc]
test eax, eax
je 0x481715
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x481706
push 0x2c
lea ecx, [esp + 0x10]
call fcn.0050813d
mov eax, dword [str.cast128_cbc]
lea ecx, [esp + 0xc]
push eax
call fcn.00508116
mov eax, dword [esi + 0x3e0]
inc edi
cmp edi, eax
jl 0x481583
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00507aaf
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.00507d3a
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.00507d3a
mov edx, dword [ebp]
mov ecx, ebp
mov byte [esp + 0x28], 0
call dword [edx + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4