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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.start_CAffid::InitializeData__
push 1
push 3
push 0x20
push str.CAffid::InitializeData
push str...CommonCppAffid.cpp
lea ecx, [ebp - 0x2c]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x10
call fcn.00401870
test eax, eax
je 0x40159f
lea eax, [edi + 4]
push eax
mov ecx, edi
call fcn.00401a70
test eax, eax
je 0x40159f
mov esi, 1
jmp 0x4015a1
xor esi, esi
mov dword [ebp - 0x10], esi
call fcn.004018e0
mov ebx, eax
test ebx, ebx
je 0x401601
lea eax, [edi + 0x20]
push eax
push 0
call fcn.004019f0
test eax, eax
je 0x401643
push dword [edi + 0x20]
lea ecx, [edi + 0x1c]
call fcn.004022d0
test al, al
je 0x401643
lea eax, [edi + 0x20]
push eax
push dword [edi + 0x1c]
call fcn.004019f0
test eax, eax
je 0x401643
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
test ecx, ecx
je 0x401643
lea eax, [edi + 8]
push eax
push edx
push ecx
call fcn.00401070
test eax, eax
je 0x401643
mov ebx, 1
jmp 0x401643
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0
call fcn.00401950
test eax, eax
je 0x401643
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00401950
test eax, eax
je 0x401643
lea eax, [edi + 8]
push eax
push dword [ebp - 0x14]
call fcn.004013c0
test eax, eax
mov eax, 1
cmovne ebx, eax
test esi, esi
je 0x40164f
test ebx, ebx
jne 0x401770
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00401d00
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x401723
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4016b6
lea eax, [ebp - 0x14]
lea ecx, [edi + 4]
push eax
call fcn.00402300
mov dword [ebp - 0x10], 1
test ebx, ebx
jne 0x401723
lea eax, [edi + 0x20]
test esi, esi
je 0x401723
test eax, eax
je 0x401723
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push ebx
push 1
push ebx
push esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x401723
push dword [edi + 0x20]
lea ecx, [edi + 0x1c]
call fcn.004022d0
test al, al
je 0x401723
lea eax, [edi + 0x20]
push eax
push dword [edi + 0x1c]
mov ecx, esi
call fcn.00401000
test eax, eax
je 0x401723
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
test ecx, ecx
je 0x401723
lea eax, [edi + 8]
push eax
push edx
push ecx
call fcn.00401070
test eax, eax
mov eax, 1
cmovne ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
mov dword [ebp - 0x20], eax
lea ecx, [eax + 0xc]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40174f
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
or edx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40176d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
push dword [edi + 0xc]
lea ecx, [ebp - 0x38]
push str.trt_retrieving_finished__trtNum___d
push 1
push 3
push 0x56
push str.CAffid::InitializeData
push str...CommonCppAffid.cpp
call fcn.0041e2e0
push eax
call fcn.0041e500
mov eax, dword [edi + 0xc]
lea ecx, [edi + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
add esp, 0x14
cmp dword [eax - 0xc], 0
je 0x4017b5
push ecx
mov ecx, 0x44ad8c
call fcn.00402300
mov eax, dword [ebp - 0x20]
mov dword [0x44ad90], eax
test esi, esi
je 0x4017e2
test ebx, ebx
je 0x4017e2
mov dword [edi], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret