Function at 0x4e7e9f
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.00526a16
add esp, 4
mov dword [ebp - 0x2c], eax
mov edi, eax
mov esi, 0x54d221
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 0x4e7f4e
mov dword [ebp + 0x10], 0x660e
cmp dword [ebp + 0x10], 0x6611
je 0x4e7f86
cmp dword [ebp + 0x10], 0x660e
je 0x4e7f86
cmp dword [ebp + 0x10], 0x660f
je 0x4e7f86
cmp dword [ebp + 0x10], 0x6610
je 0x4e7f86
xor eax, eax
jmp 0x4e7f8b
mov eax, 1
test eax, eax
je 0x4e7f9f
mov dword [ebp - 4], 0x18
jmp 0x4e7fa6
mov dword [ebp - 4], 1
cmp dword [ebp + 0x24], 0
jne 0x4e7fb7
mov dword [ebp + 0x24], 1
mov dword [ebp - 0x4c], esp
push 0xf0000000
push dword [ebp - 4]
push 0x54d2f5
push 0x54d2f5
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4e7ff6
push 0x1ea
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4e8059
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 4]
push 0x54d2f5
push 0x54d2f5
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4e8042
push 0x245
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4e8059
mov eax, 0x54d221
jmp 0x4e8a2d
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4e8075
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00526a16
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 0x4e8086
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4e80a6
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00526a16
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 0x4e80b7
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
push 0
push 2
push 8
call fcn.004e8aea
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4e80e9
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4e8100
mov eax, 0x54d221
push eax
push 1
mov ebx, 0x194
call fcn.005288c0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.005285f0
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.0040379e
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4e8159
push ebx
call fcn.00526a1c
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4e816d
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4e8184
mov eax, 0x54d221
push eax
push 1
mov ebx, 0x194
call fcn.005288c0
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 0x4e81b8
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 0x4e81e2
push 0x3dd
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4e822a
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 0x4e8220
push 0x412
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov eax, 0x54d221
jmp 0x4e8a2d
push 0x80000301
push 0
push dword [ebp + 0x24]
push 1
mov ebx, 0x198
call fcn.005285f0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4e825d
push ebx
call fcn.00526a1c
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 0x4e827a
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 0x4e82a9
push 0x4da
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4e831d
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 0x4e82e2
push 0x50e
push 0x40182ce
push 6
call fcn.00526a28
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 0x4e8313
push 0x528
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov eax, 0x54d221
jmp 0x4e8a2d
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.00527ce0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4e8352
push ebx
call fcn.00526a1c
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 0x4e8373
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 0x4e83a2
push 0x5f4
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push VariantClear
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4e83c7
mov eax, 0x54d221
push eax
push 3
mov ebx, 0x19c
call fcn.00527d10
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 0x4e83fb
and eax, 0xff
jmp 0x4e8450
cmp ecx, 0x80000201
jne 0x4e8406
cwde
jmp 0x4e8450
cmp ecx, 0x80000301
je 0x4e8450
cmp ecx, 0x80000401
je 0x4e8450
mov dword [ebp - 0x5c], eax
cmp ecx, 0x80000501
je 0x4e8440
cmp ecx, 0x80000601
je 0x4e8445
push 0x643
push 0x40182ce
push 2
call fcn.00526a28
add esp, 0xc
fld dword [ebp - 0x5c]
jmp 0x4e844b
mov dword [ebp - 0x58], edx
fld qword [ebp - 0x5c]
call fcn.0040105b
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fdiv qword [0x55e114]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.0040105b
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4e84e1
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 0x4e84a6
push 0x6d7
push 0x40182ce
push 6
call fcn.00526a28
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 0x4e84d7
push 0x6f1
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov eax, 0x54d221
jmp 0x4e8a2d
push dword [ebp + 0x1c]
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.004e8d7d
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4e8507
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, 0x54d221
xor ecx, ecx
test eax, eax
je 0x4e8519
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 0x4e852c
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4e8543
dec eax
test ecx, ecx
je 0x4e8543
call fcn.0040dda1
add esp, 0xc
test eax, eax
jne 0x4e8589
push 0x80000301
push 0
push dword [ebp - 0x28]
push 1
mov ebx, 0x1bc
call fcn.00527ce0
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 0x4e8583
push ebx
call fcn.00526a1c
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 0x4e859d
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 0x4e85cc
push 0x82f
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4e8640
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 0x4e8605
push 0x863
push 0x40182ce
push 6
call fcn.00526a28
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 0x4e8636
push 0x87d
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov eax, 0x54d221
jmp 0x4e8a2d
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.004e92d9
mov ebx, dword [ebp - 0x2c]
call fcn.004039ec
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 0x4e891f
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x30], eax
jne 0x4e868d
mov dword [ebp - 0x38], 1
jmp 0x4e8694
mov dword [ebp - 0x38], 0
mov ebx, dword [ebp - 0x2c]
call fcn.00402aee
push ebx
push ecx
mov eax, dword [ebp - 0x34]
dec eax
jns 0x4e86bb
push 0xa1d
push 0x40182ce
push 4
call fcn.00526a28
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4e86d8
push 0xa1d
push 0x40182ce
push 1
call fcn.00526a28
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.00527ce0
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.0040379e
add esp, 8
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4e8727
push ebx
call fcn.00526a1c
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4e873b
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
call fcn.00402aee
push ebx
push ecx
mov eax, dword [ebp - 0x34]
dec eax
jns 0x4e8766
push 0xa72
push 0x40182ce
push 4
call fcn.00526a28
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4e8783
push 0xa72
push 0x40182ce
push 1
call fcn.00526a28
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x4c], ebx
push VariantClear
push 0
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx]
test eax, eax
jne 0x4e87a0
mov eax, 0x54d221
push eax
push 1
mov ebx, 0x194
call fcn.005288c0
add esp, 0x10
mov dword [ebp - 0x40], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4e87c9
mov eax, 0x54d221
push eax
push 1
mov ebx, 0x194
call fcn.005288c0
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 0x4e87f3
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 0x4e882a
push 0xaff
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4e889e
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 0x4e8863
push 0xb4c
push 0x40182ce
push 6
call fcn.00526a28
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 0x4e8894
push 0xb66
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov eax, 0x54d221
jmp 0x4e8a2d
push 0x80000301
push 0
push dword [ebp - 0x40]
push VariantClear
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4e88bb
mov eax, 0x54d221
push eax
push 2
mov ebx, 0x1a0
call fcn.0052bda0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4e88e5
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
mov ecx, 2
call fcn.0040379e
add esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4e8913
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 0x48], eax
pop eax
pop ebx
pop ecx
jmp 0x4e8667
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4e8935
mov eax, 0x54d221
push eax
push 1
mov ebx, 0x194
call fcn.005288c0
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.0040105b
push 0x80000301
push 0
push eax
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4e8983
mov eax, 0x54d221
push eax
push 2
mov ebx, 0x1a0
call fcn.0052bda0
add esp, 0x1c
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4e89ad
push ebx
call fcn.00526a1c
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 0x4e89dd
push 0xca5
push 0x40182ce
push 6
call fcn.00526a28
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 0x4e8a0e
push 0xcbf
push 0x40182ce
push 6
call fcn.00526a28
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4e8a28
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00526a16
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4e8a2d
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4e8a3e
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4e8a4e
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4e8a5e
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4e8a6e
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4e8a7e
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4e8a9c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4e8a98
imul eax, dword [ebx]
jmp 0x4e8a8d
mov ecx, eax
test ecx, ecx
je 0x4e8abb
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4e8ab4
push ebx
push eax
call fcn.00526a1c
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4e8aa2
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4e8ad3
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4e8ae3
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x24