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

Disassembly:
jmp 0x481950
sub esp, 0x40
mov eax, dword [0x93e25c]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x50]
mov edx, dword [ecx]
push eax
mov ebx, 0x454
call dword [edx + 0x3c]
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
mov ebp, eax
mov al, byte [edx + 0x33]
test al, al
mov dword [esp + 0xc], ebp
mov byte [esi + 0x33], al
je 0x48199e
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
call fcn.006cedd0
add esp, 0x40
ret 4
push edi
mov edi, dword [ebp + 4]
cmp edi, 9
jb 0x481b87
mov eax, edi
and al, 7
cmp al, 1
jne 0x481b87
mov edx, dword [ebp]
xor eax, eax
mov al, byte [edx]
test al, al
jns 0x481b87
cmp dword [esi + 0x5c], 1
jne 0x481a50
mov ecx, dword fs:[0x2c]
and eax, 0x7f
mov ebp, eax
mov eax, dword [0x9798bc]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0x108]
mov ecx, dword [eax + 0x878]
mov eax, dword [ecx + 0x54]
test ah, ah
jns 0x481ad7
cmp ebp, 9
ja 0x481ad7
push 0x974920
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp + ebp*2]
lea eax, [edx*8 + 0x9728b8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x14]
push 0x974920
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x481ac0
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x78]
push edx
call dword [eax + 0x3c]
test eax, eax
je 0x481ad7
lea edx, [esp + 0x14]
push edx
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push 1
push ecx
push eax
push 0
call fcn.005ef940
push eax
call fcn.005ef950
push eax
call fcn.005ef960
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.005efbc0
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.005efbc0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.005efbc0
add esp, 0x38
lea eax, [edi - 1]
lea ebp, [esi + 0x78]
push eax
mov ecx, ebp
mov ebx, 0x411
call fcn.0040723e
test eax, eax
je 0x481b24
mov ecx, dword [0x974690]
mov edx, dword [ecx + ebx*4 - 0xfa0]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x9798bc]
push str.des_decrypt
push edx
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x108]
push ebx
push 2
push eax
call fcn.0040a1b4
add esp, 0x14
pop edi
mov byte [esi + 0x33], 1
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
call fcn.006cedd0
add esp, 0x40
ret 4
xor ecx, ecx
mov dword [esp + 0x14], ecx
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebp]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [edi - 1]
push eax
mov eax, dword [edx]
push ecx
inc eax
push eax
call fcn.005efbe0
mov ecx, dword [ebp]
movzx eax, byte [ecx + edi - 2]
add esp, 0x20
cmp eax, 8
jbe 0x481b81
pop edi
mov byte [esi + 0x33], 1
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
call fcn.006cedd0
add esp, 0x40
ret 4
sub edi, eax
dec edi
mov dword [esi + 0x7c], edi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
call fcn.006cedd0
add esp, 0x40
ret 4