Function at 0x42f2c0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
test ebx, ebx
je 0x42f2ea
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x42f2ea
push 1
push 0x4000
push ebx
call fcn.00499880
mov edi, eax
test edi, edi
jne 0x42f2f4
mov word [ebx], ax
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp word [ebx + edi*2 - 2], 0xa
jne 0x42f2fd
dec edi
xor eax, eax
mov word [ebx + edi*2], ax
cmp dword [0x507b14], eax
je 0x42f392
push 0x8002
mov dword [esp + 0x18], 0x8002
call fcn.004bb7a0
add esp, 4
mov ebp, eax
lea eax, [esp + 0x14]
push 0
push 0
push eax
push ebp
push 1
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
cmp dword [ebp], 0x4034b50
jne 0x42f389
push 0x505adc
push dword [esp + 0x18]
lea edx, [esp + 0x28]
mov ecx, ebp
call fcn.0049f130
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x42f2ea
mov esi, dword [esp + 0x20]
mov ecx, ebx
push eax
push esi
call fcn.0042f180
push dword [esp + 0x1c]
xor edx, edx
mov ecx, esi
lea edi, [eax - 1]
call fcn.00405df0
push esi
call fcn.004bb7ab
add esp, 0x10
push ebp
call fcn.004bb7ab
add esp, 4
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x42f410
mov esi, ebx
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x42f3ad
cmp eax, 9
jne 0x42f3b2
add esi, 2
jmp 0x42f3a0
cmp ebp, 1
jne 0x42f3c5
cmp eax, 0x29
je 0x42f415
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push dword [0x506424]
push 0x506404
push esi
call fcn.004c4920
add esp, 0xc
test eax, eax
jne 0x42f3ec
mov word [ebx], ax
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp word [esi], 0x29
jne 0x42f410
or edx, 0xffffffff
mov ecx, ebx
call fcn.00427530
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42f401
sub edi, ecx
sar edi, 1
cmp ebp, 2
je 0x42f446
or edx, 0xffffffff
mov ecx, ebx
call fcn.00427530
mov edx, eax
mov ecx, ebx
call fcn.004275a0
push dword [0x506424]
mov edi, eax
push 0x506404
push ebx
call fcn.004c4920
add esp, 0xc
test eax, eax
je 0x42f569
push 0x506404
push ebx
call fcn.004b76c3
mov esi, eax
add esp, 8
test esi, esi
je 0x42f3bc
nop
lea edx, [esi - 2]
cmp edx, ebx
jb 0x42f569
movzx eax, word [edx]
cmp eax, 0x20
je 0x42f4f0
cmp eax, 9
je 0x42f4f0
mov cx, word [0x505be8]
mov eax, edx
cmp edx, ebx
jbe 0x42f497
cmp word [eax], cx
jne 0x42f497
cmp word [eax - 2], cx
jne 0x42f497
sub eax, 4
cmp eax, ebx
ja 0x42f485
cmp eax, ebx
jb 0x42f4c7
cmp word [eax], cx
jne 0x42f4c7
mov ecx, esi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f4a5
sub ecx, ebp
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push edx
call fcn.004b7db0
add esp, 0xc
dec edi
mov eax, dword [0x506424]
push 0x506404
lea eax, [esi + eax*2]
push eax
call fcn.004b76c3
mov esi, eax
add esp, 8
test esi, esi
jne 0x42f460
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov edi, edx
xor eax, eax
sub edi, ebx
mov word [edx], ax
sar edi, 1
cmp word [ebx], ax
je 0x42f55e
cmp edi, 0xffffffff
jne 0x42f51f
mov edi, ebx
lea ecx, [edi + 2]
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42f510
sub edi, ecx
sar edi, 1
lea eax, [ebx - 2]
lea eax, [eax + edi*2]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x42f532
cmp ecx, 9
jne 0x42f53c
cmp eax, ebx
je 0x42f54b
sub eax, 2
dec edi
jmp 0x42f525
xor ecx, ecx
mov word [eax + 2], cx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp ecx, 0x20
je 0x42f559
cmp ecx, 9
jne 0x42f3bc
xor ecx, ecx
mov word [eax], cx
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebp
mov word [ebx], ax
pop ebx
ret 0x10