Function at 0x405ba7
Capabilities:
Create directory
Delete file

Disassembly:
mov eax, 0x4505f7
call fcn.0041e4b8
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x4c]
call fcn.00415382
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
push ebx
push str.c:_fep
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call esi
push ebx
push str.C:_fep_bhh
call esi
push ebx
push str.c:_fep_bhh_trace
call esi
push ebx
push str.c:_fep_bhh_feplog
call esi
push str._Y_m_d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004048c7
mov ecx, eax
call fcn.00405b50
push eax
lea eax, [ebp - 0x14]
push str.C:_fep_bhh_feplog_
push eax
mov byte [ebp - 4], 1
call fcn.00405112
push str..txt
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00405094
add esp, 0x18
mov eax, dword [eax]
push ebx
lea esi, [edi + 0x13c]
mov edx, dword [esi]
push 0x7041
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call dword [edx + 0x20]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004011ce
cmp dword [edi + 0x140], ebx
je 0x405dba
mov eax, dword [esi]
push 2
push ebx
push ebx
mov ecx, esi
call dword [eax + 0x28]
push ebx
push str.c:FEP_bhh_trace.
lea ecx, [ebp - 0x4c]
call fcn.00415415
test eax, eax
je 0x405d27
lea ecx, [ebp - 0x4c]
call fcn.00415163
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00415317
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004048c7
mov ecx, dword [eax]
sub ecx, esi
mov esi, dword [eax + 4]
sbb esi, dword [ebp - 0x28]
mov eax, dword [edi + 0x150]
mov eax, dword [eax + 0x5c]
push ebx
push 0x15180
cdq
push esi
push ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call fcn.0041ece0
cmp edx, dword [ebp - 0x14]
jl 0x405d1a
jg 0x405cfb
cmp eax, dword [ebp - 0x18]
jbe 0x405d1a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041563d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004011ce
cmp dword [ebp - 0x10], ebx
jne 0x405c9f
lea ecx, [ebp - 0x4c]
call fcn.00415093
push ebx
push str.c:FEP_bhh_feplog.
lea ecx, [ebp - 0x4c]
call fcn.00415415
test eax, eax
je 0x405db7
lea ecx, [ebp - 0x4c]
call fcn.00415163
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00415317
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004048c7
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, esi
sbb eax, dword [ebp - 0x28]
push ebx
push 0x15180
push eax
push ecx
call fcn.0041ece0
mov esi, eax
mov eax, dword [edi + 0x70]
mov ecx, edx
cdq
cmp ecx, edx
jl 0x405daa
jg 0x405d8b
cmp esi, eax
jbe 0x405daa
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041563d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004011ce
cmp dword [ebp - 0x10], ebx
jne 0x405d39
lea ecx, [ebp - 0x4c]
call fcn.00415093
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004153a6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret