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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a04d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x487274]
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 dword [ebp - 0x60], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x68], ebx
push eax
call fcn.00427800
mov edi, dword [ebp - 0x30]
mov dword [ebp - 4], 0
test edi, edi
jne 0x4264d4
push str.Could_not_load_empty_file_for_logging__please_re_check_your_configurations_for_level__
push 0x48a7e0
call fcn.00401400
push ebx
mov esi, eax
call fcn.00424820
add esp, 0xc
push 0x46cb8c
push eax
push esi
call fcn.00401400
add esp, 8
push eax
call fcn.00401400
mov edi, dword [ebp - 0x30]
add esp, 8
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
push 0
cmp ebx, 0x10
push 0x46c384
cmovae eax, dword [ebp - 0x40]
push edi
push eax
call fcn.0040a4c0
add esp, 0x10
test al, al
jne 0x42656f
mov esi, dword [0x487044]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426501
sub ecx, edx
lea eax, [ebp - 0x40]
push ecx
push esi
cmp ebx, 0x10
push 0
cmovae eax, dword [ebp - 0x40]
push edi
push eax
call fcn.0041b7c0
add esp, 0x14
cmp eax, 0xffffffff
je 0x42656f
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x40]
call fcn.00425180
test eax, eax
jne 0x42655d
mov ecx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426548
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403b20
jmp 0x42657b
inc eax
lea ecx, [ebp - 0x40]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00428da0
jmp 0x42657b
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c20
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp eax, dword [ebp - 0x30]
jae 0x4266b1
test eax, eax
je 0x4266b1
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp edx, 0x10
jb 0x4265a5
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4265c2
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4265bc
shr eax, 4
and al, 1
jne 0x4266b1
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp edx, 0x10
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0xf
cmovae eax, ecx
mov byte [ebp - 0x58], 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
push ecx
push dword [0x487044]
mov dword [ebp - 0x5c], 0
push eax
call fcn.0044f38c
mov edx, eax
add esp, 0xc
test edx, edx
je 0x42674e
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426610
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004039c0
mov edx, dword [0x487044]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426630
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004039c0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0045007a
mov esi, eax
lea eax, [ebp - 0x5c]
push eax
push dword [0x487044]
push 0
call fcn.0044f38c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x426605
cmp esi, 0xffffffff
je 0x42674e
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x4266b1
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4266a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4267b2
push edx
push ecx
call fcn.0042cf26
add esp, 8
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
cmp dword [eax + 0x80], 0
jne 0x4266d4
cmp dword [eax + 0x120], 0
mov eax, 1
je 0x4266d7
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x64]
call fcn.00420310
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x426714
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42670a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4267ad
push edx
push ecx
call fcn.0042cf26
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x42678f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x426785
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4267ad
jmp 0x426785
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x4266b1
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4266a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4267b2
jmp 0x4266a7
push edx
push ecx
call fcn.0042cf26
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.0042cf39
mov esp, ebp
pop ebp
ret 8
call fcn.0044807a
call fcn.0044807a
int3