Function at 0x4d1077
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.0050fbee
add esp, 4
mov dword [ebp - 0x2c], eax
mov edi, eax
mov esi, 0x537293
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 0x4d1126
mov dword [ebp + 0x10], 0x660e
cmp dword [ebp + 0x10], 0x6611
je 0x4d115e
cmp dword [ebp + 0x10], 0x660e
je 0x4d115e
cmp dword [ebp + 0x10], 0x660f
je 0x4d115e
cmp dword [ebp + 0x10], 0x6610
je 0x4d115e
xor eax, eax
jmp 0x4d1163
mov eax, 1
test eax, eax
je 0x4d1177
mov dword [ebp - 4], 0x18
jmp 0x4d117e
mov dword [ebp - 4], 1
cmp dword [ebp + 0x24], 0
jne 0x4d118f
mov dword [ebp + 0x24], 1
mov dword [ebp - 0x4c], esp
push 0xf0000000
push dword [ebp - 4]
push 0x537282
push 0x537282
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4d11ce
push 0x1ea
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4d1231
mov dword [ebp - 0x4c], esp
push 0
push dword [ebp - 4]
push 0x537282
push 0x537282
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4d121a
push 0x245
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4d1231
mov eax, 0x537293
jmp 0x4d1c05
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4d124d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0050fbee
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 0x4d125e
push ebx
call fcn.0050fbf4
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4d127e
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0050fbee
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 0x4d128f
push ebx
call fcn.0050fbf4
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
push 0
push 2
push 8
call fcn.004d1cc2
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4d12c1
push ebx
call fcn.0050fbf4
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4d12d8
mov eax, 0x537293
push eax
push 1
mov ebx, 0x194
call fcn.00511700
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.00511430
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.00402d3a
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4d1331
push ebx
call fcn.0050fbf4
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4d1345
push ebx
call fcn.0050fbf4
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4d135c
mov eax, 0x537293
push eax
push 1
mov ebx, 0x194
call fcn.00511700
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 0x4d1390
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 0x4d13ba
push 0x3dd
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4d1402
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 0x4d13f8
push 0x412
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov eax, 0x537293
jmp 0x4d1c05
push 0x80000301
push 0
push dword [ebp + 0x24]
push 1
mov ebx, 0x198
call fcn.00511430
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4d1435
push ebx
call fcn.0050fbf4
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 0x4d1452
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 0x4d1481
push 0x4da
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4d14f5
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 0x4d14ba
push 0x50e
push 0x4016990
push 6
call fcn.0050fc00
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 0x4d14eb
push 0x528
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov eax, 0x537293
jmp 0x4d1c05
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.00511940
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4d152a
push ebx
call fcn.0050fbf4
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 0x4d154b
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 0x4d157a
push 0x5f4
push 0x4016990
push 6
call fcn.0050fc00
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 0x4d159f
mov eax, 0x537293
push eax
push 3
mov ebx, 0x19c
call fcn.00512530
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 0x4d15d3
and eax, 0xff
jmp 0x4d1628
cmp ecx, 0x80000201
jne 0x4d15de
cwde
jmp 0x4d1628
cmp ecx, 0x80000301
je 0x4d1628
cmp ecx, 0x80000401
je 0x4d1628
mov dword [ebp - 0x5c], eax
cmp ecx, 0x80000501
je 0x4d1618
cmp ecx, 0x80000601
je 0x4d161d
push 0x643
push 0x4016990
push 2
call fcn.0050fc00
add esp, 0xc
fld dword [ebp - 0x5c]
jmp 0x4d1623
mov dword [ebp - 0x58], edx
fld qword [ebp - 0x5c]
call fcn.0040148c
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fdiv qword [0x5480e9]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.0040148c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4d16b9
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 0x4d167e
push 0x6d7
push 0x4016990
push 6
call fcn.0050fc00
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 0x4d16af
push 0x6f1
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov eax, 0x537293
jmp 0x4d1c05
push dword [ebp + 0x1c]
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.004d1f55
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4d16df
push ebx
call fcn.0050fbf4
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, 0x537293
xor ecx, ecx
test eax, eax
je 0x4d16f1
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 0x4d1704
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4d171b
dec eax
test ecx, ecx
je 0x4d171b
call fcn.0040e0ca
add esp, 0xc
test eax, eax
jne 0x4d1761
push 0x80000301
push 0
push dword [ebp - 0x28]
push 1
mov ebx, 0x1bc
call fcn.00511940
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 0x4d175b
push ebx
call fcn.0050fbf4
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 0x4d1775
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 0x4d17a4
push 0x82f
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4d1818
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 0x4d17dd
push 0x863
push 0x4016990
push 6
call fcn.0050fc00
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 0x4d180e
push 0x87d
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov eax, 0x537293
jmp 0x4d1c05
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.004d24b1
mov ebx, dword [ebp - 0x2c]
call fcn.00402f88
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 0x4d1af7
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x30], eax
jne 0x4d1865
mov dword [ebp - 0x38], 1
jmp 0x4d186c
mov dword [ebp - 0x38], 0
mov ebx, dword [ebp - 0x2c]
call fcn.0040208a
push ebx
push ecx
mov eax, dword [ebp - 0x34]
dec eax
jns 0x4d1893
push 0xa1d
push 0x4016990
push 4
call fcn.0050fc00
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4d18b0
push 0xa1d
push 0x4016990
push 1
call fcn.0050fc00
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.00511940
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.00402d3a
add esp, 8
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4d18ff
push ebx
call fcn.0050fbf4
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4d1913
push ebx
call fcn.0050fbf4
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
call fcn.0040208a
push ebx
push ecx
mov eax, dword [ebp - 0x34]
dec eax
jns 0x4d193e
push 0xa72
push 0x4016990
push 4
call fcn.0050fc00
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4d195b
push 0xa72
push 0x4016990
push 1
call fcn.0050fc00
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 0x4d1978
mov eax, 0x537293
push eax
push 1
mov ebx, 0x194
call fcn.00511700
add esp, 0x10
mov dword [ebp - 0x40], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4d19a1
mov eax, 0x537293
push eax
push 1
mov ebx, 0x194
call fcn.00511700
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 0x4d19cb
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 0x4d1a02
push 0xaff
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4d1a76
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 0x4d1a3b
push 0xb4c
push 0x4016990
push 6
call fcn.0050fc00
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 0x4d1a6c
push 0xb66
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov eax, 0x537293
jmp 0x4d1c05
push 0x80000301
push 0
push dword [ebp - 0x40]
push VariantClear
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4d1a93
mov eax, 0x537293
push eax
push 2
mov ebx, 0x1a0
call fcn.00511970
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4d1abd
push ebx
call fcn.0050fbf4
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
mov ecx, 2
call fcn.00402d3a
add esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4d1aeb
push ebx
call fcn.0050fbf4
add esp, 4
pop eax
mov dword [ebp - 0x48], eax
pop eax
pop ebx
pop ecx
jmp 0x4d183f
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4d1b0d
mov eax, 0x537293
push eax
push 1
mov ebx, 0x194
call fcn.00511700
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.0040148c
push 0x80000301
push 0
push eax
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4d1b5b
mov eax, 0x537293
push eax
push 2
mov ebx, 0x1a0
call fcn.00511970
add esp, 0x1c
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4d1b85
push ebx
call fcn.0050fbf4
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 0x4d1bb5
push 0xca5
push 0x4016990
push 6
call fcn.0050fc00
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 0x4d1be6
push 0xcbf
push 0x4016990
push 6
call fcn.0050fc00
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4d1c00
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0050fbee
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4d1c05
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4d1c16
push ebx
call fcn.0050fbf4
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4d1c26
push ebx
call fcn.0050fbf4
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4d1c36
push ebx
call fcn.0050fbf4
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4d1c46
push ebx
call fcn.0050fbf4
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4d1c56
push ebx
call fcn.0050fbf4
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4d1c74
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4d1c70
imul eax, dword [ebx]
jmp 0x4d1c65
mov ecx, eax
test ecx, ecx
je 0x4d1c93
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4d1c8c
push ebx
push eax
call fcn.0050fbf4
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4d1c7a
call fcn.0050fbf4
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4d1cab
push ebx
call fcn.0050fbf4
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4d1cbb
push ebx
call fcn.0050fbf4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x24