Function at 0x4c9533
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 8
call fcn.005080aa
add esp, 4
mov dword [ebp - 0x2c], eax
mov edi, eax
mov esi, 0x52b2d1
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp + 0x10], 0x6611
jne 0x4c95e2
mov dword [ebp + 0x10], 0x660e
cmp dword [ebp + 0x10], 0x6611
je 0x4c961a
cmp dword [ebp + 0x10], 0x660e
je 0x4c961a
cmp dword [ebp + 0x10], 0x660f
je 0x4c961a
cmp dword [ebp + 0x10], 0x6610
je 0x4c961a
xor eax, eax
jmp 0x4c961f
mov eax, 1
test eax, eax
je 0x4c9633
mov dword [ebp - 4], 0x18
jmp 0x4c963a
mov dword [ebp - 4], 1
cmp dword [ebp + 0x24], 0
jne 0x4c964b
mov dword [ebp + 0x24], 1
mov dword [ebp - 0x4c], esp
push 0xf0000000
push dword [ebp - 4]
push 0x52b36d
push 0x52b36d
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c968a
push 0x1ea
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4c96ed
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 4]
push 0x52b36d
push 0x52b36d
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c96d6
push 0x245
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4c96ed
mov eax, 0x52b2d1
jmp 0x4ca0c1
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4c9709
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005080aa
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4c971a
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4c973a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005080aa
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4c974b
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
push 0
push 2
push 8
call fcn.004ca17e
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4c977d
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantCopy
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4c9794
mov eax, 0x52b2d1
push eax
push 1
mov ebx, 0x194
call fcn.00509eb0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.00509de0
add esp, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp - 0xc]
push dword [ebp - 0x50]
push dword [ebp - 0x14]
mov ecx, 3
call fcn.0040358f
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4c97ed
push ebx
call fcn.005080b0
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4c9801
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4c9818
mov eax, 0x52b2d1
push eax
push 1
mov ebx, 0x194
call fcn.00509eb0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esp
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c984c
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop
nop
cmp dword [ebp - 0x50], esp
je 0x4c9876
push 0x3dd
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4c98be
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c98b4
push 0x412
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov eax, 0x52b2d1
jmp 0x4ca0c1
push 0x80000301
push 0
push dword [ebp + 0x24]
push 1
mov ebx, 0x198
call fcn.00509de0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4c98f1
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x4c], esp
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4c990e
add eax, 8
push eax
push 4
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c993d
push 0x4da
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4c99b1
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9976
push 0x50e
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c99a7
push 0x528
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov eax, 0x52b2d1
jmp 0x4ca0c1
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.00509420
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4c99e6
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x4c], esp
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4c9a07
add eax, 8
push eax
push 8
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9a36
push 0x5f4
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push VariantCopy
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4c9a5b
mov eax, 0x52b2d1
push eax
push 3
mov ebx, 0x19c
call fcn.00509550
add esp, 0x28
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
cmp ecx, 0x80000101
jne 0x4c9a8f
and eax, 0xff
jmp 0x4c9ae4
cmp ecx, 0x80000201
jne 0x4c9a9a
cwde
jmp 0x4c9ae4
cmp ecx, 0x80000301
je 0x4c9ae4
cmp ecx, 0x80000401
je 0x4c9ae4
mov dword [ebp - 0x5c], eax
cmp ecx, 0x80000501
je 0x4c9ad4
cmp ecx, 0x80000601
je 0x4c9ad9
push 0x643
push 0x4016959
push 2
call fcn.005080bc
add esp, 0xc
fld dword [ebp - 0x5c]
jmp 0x4c9adf
mov dword [ebp - 0x58], edx
fld qword [ebp - 0x5c]
call fcn.0040101b
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fdiv qword [0x5f87b1]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.0040101b
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4c9b75
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9b3a
push 0x6d7
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9b6b
push 0x6f1
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov eax, 0x52b2d1
jmp 0x4ca0c1
push dword [ebp + 0x1c]
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.004ca411
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4c9b9b
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, 0x52b2d1
xor ecx, ecx
test eax, eax
je 0x4c9bad
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x4c9bc0
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4c9bd7
dec eax
test ecx, ecx
je 0x4c9bd7
call fcn.0040e8ed
add esp, 0xc
test eax, eax
jne 0x4c9c1d
push 0x80000301
push 0
push dword [ebp - 0x28]
push 1
mov ebx, 0x1bc
call fcn.00509420
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4c9c17
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebp - 0x4c], esp
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x4c9c31
add eax, 8
push eax
push 1
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9c60
push 0x82f
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4c9cd4
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9c99
push 0x863
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9cca
push 0x87d
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov eax, 0x52b2d1
jmp 0x4ca0c1
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.004ca96d
mov ebx, dword [ebp - 0x2c]
call fcn.004037dd
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push eax
lea eax, [ebp - 0x34]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4c9fb3
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x30], eax
jne 0x4c9d21
mov dword [ebp - 0x38], 1
jmp 0x4c9d28
mov dword [ebp - 0x38], 0
mov ebx, dword [ebp - 0x2c]
call fcn.004028df
push ebx
push ecx
mov eax, dword [ebp - 0x34]
dec eax
jns 0x4c9d4f
push 0xa1d
push 0x4016959
push 4
call fcn.005080bc
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4c9d6c
push 0xa1d
push 0x4016959
push 1
call fcn.005080bc
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x4c], ebx
push 0x80000301
push 0
push dword [ebp - 0x28]
push 1
mov ebx, 0x1bc
call fcn.00509420
add esp, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
push dword [ebx]
mov ecx, 2
call fcn.0040358f
add esp, 8
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4c9dbb
push ebx
call fcn.005080b0
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4c9dcf
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
call fcn.004028df
push ebx
push ecx
mov eax, dword [ebp - 0x34]
dec eax
jns 0x4c9dfa
push 0xa72
push 0x4016959
push 4
call fcn.005080bc
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4c9e17
push 0xa72
push 0x4016959
push 1
call fcn.005080bc
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x4c], ebx
push VariantCopy
push 0
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx]
test eax, eax
jne 0x4c9e34
mov eax, 0x52b2d1
push eax
push 1
mov ebx, 0x194
call fcn.00509eb0
add esp, 0x10
mov dword [ebp - 0x40], eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4c9e5d
mov eax, 0x52b2d1
push eax
push 1
mov ebx, 0x194
call fcn.00509eb0
add esp, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4c9e87
add eax, 8
push eax
push 0
push dword [ebp - 0x38]
push 0
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9ebe
push 0xaff
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4c9f32
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9ef7
push 0xb4c
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c9f28
push 0xb66
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov eax, 0x52b2d1
jmp 0x4ca0c1
push 0x80000301
push 0
push dword [ebp - 0x40]
push VariantCopy
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4c9f4f
mov eax, 0x52b2d1
push eax
push 2
mov ebx, 0x1a0
call fcn.0050a0c0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4c9f79
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
mov ecx, 2
call fcn.0040358f
add esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4c9fa7
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x48], eax
pop eax
pop ebx
pop ecx
jmp 0x4c9cfb
add esp, 0xc
push VariantCopy
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4c9fc9
mov eax, 0x52b2d1
push eax
push 1
mov ebx, 0x194
call fcn.00509eb0
add esp, 0x10
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x28]
fstp qword [ebp - 0x5c]
fsub qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.0040101b
push 0x80000301
push 0
push eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4ca017
mov eax, 0x52b2d1
push eax
push 2
mov ebx, 0x1a0
call fcn.0050a0c0
add esp, 0x1c
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4ca041
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4ca071
push 0xca5
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4ca0a2
push 0xcbf
push 0x4016959
push 6
call fcn.005080bc
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4ca0bc
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005080aa
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4ca0c1
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4ca0d2
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4ca0e2
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4ca0f2
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4ca102
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4ca112
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4ca130
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4ca12c
imul eax, dword [ebx]
jmp 0x4ca121
mov ecx, eax
test ecx, ecx
je 0x4ca14f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4ca148
push ebx
push eax
call fcn.005080b0
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4ca136
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4ca167
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4ca177
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x24