Function at 0x4c58f0
Capabilities:
Create directory
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543e78
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x58f574]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004c6220
mov ecx, dword [ebx + 0x2e4]
lea eax, [ebx + 0x2d4]
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4c5956
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f500
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebx + 0x220], 8
lea eax, [ebx + 0x20c]
jb 0x4c5987
mov eax, dword [eax]
movzx eax, word [eax]
lea ecx, [ebp - 0x28]
push eax
call fcn.004c2700
push 5
push str..ntdb
lea ecx, [ebp - 0x28]
call fcn.0040f500
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x561e38
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0052258c
mov esi, eax
add esp, 8
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x4c5b37
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
jb 0x4c59dc
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4c5b2c
push esi
call fcn.004c6020
add esp, 4
cmp eax, 1
jne 0x4c5b2c
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.00522d05
add esp, 8
cmp eax, 0xffffffff
je 0x4c5b2c
mov edi, dword [ebp - 0x44]
cmp edi, 0x11
jb 0x4c5b2c
mov eax, dword [ebx + 0x274]
test eax, eax
je 0x4c5a2d
push eax
call fcn.004c6ffd
add esp, 4
mov dword [ebx + 0x274], 0
push 0x596688
push edi
call fcn.004c7002
add esp, 8
mov dword [ebx + 0x274], eax
test eax, eax
je 0x4c5b2c
push dword [ebp - 0x5c]
push edi
push 1
push eax
call fcn.0052332b
mov ecx, dword [ebx + 0x274]
add esp, 0x10
mov eax, dword [ecx + 1]
lea esi, [ecx + 1]
mov dword [ebx + 0x2a0], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x2a4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x290], eax
mov eax, dword [esi + 0xc]
add esi, 0x10
mov dword [ebx + 0x294], eax
lea eax, [ecx + edi]
cmp esi, eax
jae 0x4c5b2c
push 0xc
call fcn.004c6c46
mov ecx, eax
add esp, 4
mov dword [ebp - 0x60], ecx
test ecx, ecx
je 0x4c5abc
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
jmp 0x4c5abe
xor ecx, ecx
mov eax, dword [esi]
mov dword [ebp - 0x60], ecx
mov dword [ecx], eax
test eax, eax
je 0x4c5aef
mov eax, dword [esi + 4]
add esi, 8
mov edx, esi
mov dword [ecx + 4], eax
mov dword [ecx + 8], esi
lea eax, [edx + 1]
mov dword [ebp - 0x64], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4c5ae0
sub edx, dword [ebp - 0x64]
inc esi
add esi, edx
jmp 0x4c5af2
add esi, 4
mov eax, dword [ebx + 0x26c]
cmp dword [ebx + 0x270], eax
je 0x4c5b0b
mov dword [eax], ecx
add dword [ebx + 0x26c], 4
jmp 0x4c5b1b
lea ecx, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebx + 0x268]
call fcn.00419d60
mov eax, dword [ebx + 0x274]
add eax, dword [ebp - 0x44]
cmp esi, eax
jb 0x4c5a93
push dword [ebp - 0x5c]
call fcn.00522d86
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4c5b6d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5b63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5b89
push edx
push ecx
call fcn.004c6c76
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f1e
mov esp, ebp
pop ebp
ret
call fcn.0050d599
int3