Function at 0x405654
Capabilities:
Create directory
Delete file

Disassembly:
mov eax, 0x44fc2d
call fcn.0041db18
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x4c]
call fcn.004149dc
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.004043a2
mov ecx, eax
call fcn.004055fd
push eax
lea eax, [ebp - 0x14]
push str.C:_fep_bhh_feplog_
push eax
mov byte [ebp - 4], 1
call fcn.00404bbf
push str..txt
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00404b41
add esp, 0x18
mov eax, dword [eax]
push ebx
lea esi, [edi + 0x130]
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 + 0x134], ebx
je 0x405867
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.00414a6f
test eax, eax
je 0x4057d4
lea ecx, [ebp - 0x4c]
call fcn.004147bd
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00414971
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004043a2
mov ecx, dword [eax]
sub ecx, esi
mov esi, dword [eax + 4]
sbb esi, dword [ebp - 0x28]
mov eax, dword [edi + 0x144]
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.0041e340
cmp edx, dword [ebp - 0x14]
jl 0x4057c7
jg 0x4057a8
cmp eax, dword [ebp - 0x18]
jbe 0x4057c7
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00414c97
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 0x40574c
lea ecx, [ebp - 0x4c]
call fcn.004146ed
push ebx
push str.c:FEP_bhh_feplog.
lea ecx, [ebp - 0x4c]
call fcn.00414a6f
test eax, eax
je 0x405864
lea ecx, [ebp - 0x4c]
call fcn.004147bd
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00414971
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004043a2
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.0041e340
mov esi, eax
mov eax, dword [edi + 0x70]
mov ecx, edx
cdq
cmp ecx, edx
jl 0x405857
jg 0x405838
cmp esi, eax
jbe 0x405857
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00414c97
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 0x4057e6
lea ecx, [ebp - 0x4c]
call fcn.004146ed
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00414a00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret