Function at 0x407b70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a9e3
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x491024]
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
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
lea edi, [ebx + 4]
mov dword [ebx], vtable.cFileLoggerComponent.0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x407bd4
mov eax, dword [edi]
jmp 0x407bd6
mov eax, edi
mov byte [eax], 0
lea esi, [ebx + 0x1c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x407bf4
mov eax, dword [esi]
jmp 0x407bf6
mov eax, esi
mov byte [eax], 0
lea eax, [ebx + 0x34]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x407c12
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [ebx + 0x4c]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x407c2e
mov eax, dword [eax]
mov byte [eax], 0
mov byte [ebp - 4], 4
cmp byte [edx], 0
jne 0x407c3e
xor ecx, ecx
jmp 0x407c50
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407c46
sub ecx, dword [ebp - 0x30]
push ecx
push edx
mov ecx, esi
call fcn.004031e0
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0
jne 0x407c65
xor ecx, ecx
jmp 0x407c7c
mov ecx, eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407c70
mov eax, dword [ebp - 0x2c]
sub ecx, edx
push ecx
push eax
lea ecx, [ebx + 0x34]
call fcn.004031e0
push 4
push str..txt
lea ecx, [ebx + 0x4c]
call fcn.004031e0
cmp dword [ebx + 0x2c], 0
mov ecx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jbe 0x407cdf
cmp dword [esi + 0x14], 0x10
jb 0x407cab
mov eax, dword [esi]
jmp 0x407cad
mov eax, esi
push eax
call ecx
cmp eax, 0xffffffff
je 0x407cb9
test al, 0x10
jne 0x407cd9
cmp dword [esi + 0x14], 0x10
jb 0x407cc3
mov eax, dword [esi]
jmp 0x407cc5
mov eax, esi
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
je 0x407cd9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [esi + 0x10], 0
jbe 0x407cfd
cmp dword [esi + 0x14], 0x10
jb 0x407cef
mov eax, dword [esi]
jmp 0x407cf1
mov eax, esi
push eax
call ecx
cmp eax, 0xffffffff
je 0x407cfd
test al, 0x10
jne 0x407d07
cmp dword [ebx + 0x2c], 0
jne 0x407e88
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004032e0
mov byte [ebp - 4], 5
cmp dword [ebx + 0x2c], 0
jbe 0x407d54
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp byte [ecx + eax - 1], 0x5c
je 0x407d54
push 1
push 0x47e570
lea ecx, [ebp - 0x28]
call fcn.00403400
lea ecx, [ebp - 0x48]
call fcn.00408460
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00403520
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x407d87
mov ecx, dword [ebp - 0x48]
inc edx
push 1
call fcn.004024a0
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407da2
test al, 0x10
jne 0x407dc1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
je 0x407dc1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 1
push 0x47e570
lea ecx, [ebp - 0x28]
call fcn.00403400
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x64]
call fcn.00407760
lea ecx, [ebx + 0x4c]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00405f30
add esp, 8
mov esi, eax
cmp edi, esi
je 0x407e34
mov edx, dword [edi + 0x14]
cmp edx, 0x10
jb 0x407e0f
mov ecx, dword [edi]
inc edx
push 1
call fcn.004024a0
add esp, 4
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x407e27
mov eax, dword [edi]
jmp 0x407e29
mov eax, edi
push esi
mov ecx, edi
mov byte [eax], 0
call fcn.00403610
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x407e4a
mov ecx, dword [ebp - 0x48]
inc edx
push 1
call fcn.004024a0
add esp, 4
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x407e72
mov ecx, dword [ebp - 0x64]
inc edx
push 1
call fcn.004024a0
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x407e88
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004024a0
add esp, 4
mov eax, ebx
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.004787cb
mov esp, ebp
pop ebp
ret 0x10