Function at 0x4c1620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e07
mov eax, dword fs:[0]
push eax
mov eax, 0x109ec
mov dword fs:[0], esp
call fcn.00612380
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xb4]
cmp dword [eax - 4], 1
push edi
lea edi, [esi + 0xb4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], edi
jle 0x4c166a
mov eax, dword [eax - 0xc]
push eax
mov ecx, edi
call fcn.00401370
mov ecx, dword [edi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov dword [0x713bfc], ecx
mov edx, dword [esi + 4]
push 0x1042
push edx
call ebx
push 0x66f16a
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.0040aab0
mov dword [ebp - 4], 0
push str.5BDBAF3E_769F_40BF_A0D6_F2D80F9121BA
lea ecx, [ebp - 0x10]
call fcn.005b2cd0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x2c], vtable.CLockMgr_class_CMutexWrapper_.0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
call fcn.005b2cb0
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0xb8]
mov eax, dword [ecx + 4]
cmp edi, eax
ja 0x4c1761
test eax, eax
je 0x4c1761
push 0x30
lea edx, [ebp - 0xc4]
push 0
push edx
call fcn.006100a0
mov ecx, dword [esi + 4]
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
push 0
push 0x104b
push ecx
mov dword [ebp - 0xc8], 4
mov dword [ebp - 0xc4], edi
call ebx
mov esi, dword [esi + 0xb8]
mov edx, dword [ebp - 0xa8]
cmp edx, dword [esi + 4]
jb 0x4c1734
push 0x80070057
call fcn.004011d0
mov ecx, dword [esi]
lea eax, [edx + edx*4]
add eax, eax
add eax, eax
add eax, eax
cmp dword [ecx + eax + 4], 0
jle 0x4c1761
cmp edx, dword [esi + 4]
jb 0x4c1755
push 0x80070057
call fcn.004011d0
lea esi, [eax + ecx]
push esi
lea ecx, [ebp - 0x1c]
call fcn.004078d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], vtable.CLockMgr_class_CMutexWrapper_.0
call fcn.005b2bb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.005b2cc0
mov edx, dword [ebp - 0x1c]
push 0x66fe90
push edx
call fcn.00614a04
mov edi, eax
add esp, 8
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4c1ae2
push 2
push 0
push edi
call fcn.006167c5
push edi
call fcn.006166d6
push 0
push 0x12
push edi
mov esi, eax
call fcn.006167c5
add esi, 0xfee
push esi
call fcn.00611521
add esp, 0x20
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4c1ad9
push edi
push 0x1000
push 1
push eax
call fcn.00614929
mov esi, eax
add esp, 0x10
xor eax, eax
xor ebx, ebx
test esi, esi
je 0x4c1acd
mov edi, dword [ebp - 0x10]
jmp 0x4c17fb
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call fcn.005bd2f0
mov ecx, dword [ebp - 0x20]
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push 0x1000
add ebx, esi
lea edi, [ebx + eax]
push 1
push edi
call fcn.00614929
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4c17f8
xor edi, edi
cmp ebx, edi
jbe 0x4c1aca
lea ecx, [ebp - 0xbc]
call fcn.004c0400
mov byte [ebp - 4], 3
mov dword [ebp - 0xbc], vtable.CMimeMessage.0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
push ebx
push edx
lea ecx, [ebp - 0xbc]
call fcn.005b65e0
push 0xc
mov dword [ebp - 0x28], edi
call fcn.00611c8b
add esp, 4
cmp eax, edi
je 0x4c1b1b
mov dword [ebp - 0x2c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xbc]
call fcn.005b5e10
cmp eax, edi
jle 0x4c1a92
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push 0x1080f
lea ecx, [ebp - 0x109f7]
lea eax, [ebp - 0x1e8]
push edi
push ecx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], 0x45
mov dword [ebp - 0x58], 0x4bd210
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 0x109f8], 0
call fcn.006100a0
add esp, 0xc
lea edx, [ebp - 0x6c]
push edx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, edi
je 0x4c1a92
lea ecx, [ebp - 0x109f8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edx, [ebp - 0x109f8]
push edx
lea ecx, [ebp - 0x14]
call fcn.00415220
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
push eax
call fcn.00405830
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
cmp ecx, eax
je 0x4c1a6f
jmp 0x4c1936
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0xe4]
push ecx
mov ecx, esi
call fcn.004bfcd0
mov byte [ebp - 4], 9
cmp dword [eax + 0x10], edi
seta bl
mov byte [ebp - 4], 8
cmp dword [ebp - 0xd0], 0x10
jb 0x4c196d
mov edx, dword [ebp - 0xe4]
push edx
call fcn.0060faf6
add esp, 4
mov dword [ebp - 0xd0], 0xf
mov dword [ebp - 0xd4], edi
mov byte [ebp - 0xe4], 0
test bl, bl
je 0x4c1a5e
lea eax, [ebp - 0x94]
push eax
mov ecx, esi
call fcn.004bfcd0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x4c], 0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x109f8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c19c0
sub eax, edx
push eax
lea ecx, [ebp - 0x109f8]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004be5b0
push 1
push 0x66f168
lea ecx, [ebp - 0x4c]
call fcn.004be5b0
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004bde80
mov eax, dword [ebp - 0x4c]
mov ebx, 0x10
cmp dword [ebp - 0x38], ebx
jae 0x4c1a0a
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.005b4cc0
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x38], ebx
jb 0x4c1a27
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0060faf6
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x4c], 0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x80], ebx
jb 0x4c1a4e
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0060faf6
add esp, 4
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], edi
mov byte [ebp - 0x94], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x2c]
jne 0x4c1933
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c1a92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004be880
mov byte [ebp - 4], 0
mov dword [ebp - 0xbc], vtable.CMimeMessage.0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xbc]
call fcn.005b6350
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.004c0500
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push eax
call fcn.0060faf6
add esp, 4
push edi
call fcn.0061466b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x4c1b0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x14], edi
call fcn.00610cdf
mov byte [ebp - 4], 5
mov dword [ebp - 0x78], vtable.std::bad_alloc.0
mov byte [ebp - 4], 4
push 0x6b9848
lea edx, [ebp - 0x78]
push edx
call fcn.0060fb01
int3