Function at 0x46fb70
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a11d6
mov eax, dword fs:[0]
push eax
sub esp, 0xa94
mov eax, dword [0x608554]
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 esi, dword [ebp + 8]
push ecx
push str.OperateFile::MakeSureDirectoryPathExistsOrg
lea ecx, [ebp - 0xaa0]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46fbf9
test byte [ecx + 0x1c], 1
je 0x46fbf9
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x8f
call fcn.00401840
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xa54], 7
push eax
xor edi, edi
mov word [ebp - 0xa68], ax
push 0x5c6930
lea ecx, [ebp - 0xa68]
mov dword [ebp - 0xa58], edi
call fcn.004035d0
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x5c6930
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa40], edi
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
call fcn.004035d0
test esi, esi
jne 0x46fc6b
mov edi, 0x80010001
mov dword [0x6183ec], 1
jmp 0x46fe6b
push 0x410
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00571c00
push 0x410
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0x24
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46fce8
test byte [ecx + 0x1c], 4
je 0x46fce8
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x90
call fcn.00405920
add esp, 0x10
push esi
lea eax, [ebp - 0x628]
push 0x208
push eax
call fcn.005746e6
add esp, 0xc
lea eax, [ebp - 0x628]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x46fe6b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
cmp word [ebp + esi*2 - 0x628], 0x5c
jne 0x46fe55
push 0x410
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0xa38]
push 0x208
push eax
call fcn.0057f4bc
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005746e6
lea eax, [ebp - 0x218]
add esp, 0x34
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46fd95
sub eax, edx
sar eax, 1
je 0x46fe03
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46fe55
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46fe55
call ebx
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x46fe46
test byte [edx + 0x1c], 4
je 0x46fe46
cmp dword [0x608f68], 8
mov ecx, 0x608f54
push eax
cmovae ecx, dword [0x608f54]
push ecx
mov ecx, 0x91
jmp 0x46fe33
call ebx
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x46fe46
test byte [edx + 0x1c], 4
je 0x46fe46
cmp dword [0x608f68], 8
mov ecx, 0x608f54
push eax
cmovae ecx, dword [0x608f54]
push ecx
mov ecx, 0x92
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x5cecd4
call fcn.004018a0
add esp, 0x10
mov dword [0x6183ec], 9
mov edi, 0x80010009
lea eax, [ebp - 0x628]
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
jne 0x46fd20
mov byte [ebp - 0xa9c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46feb3
test byte [ecx + 0x1c], 1
je 0x46feb3
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x93
call fcn.004018a0
add esp, 0x10
mov edx, dword [ebp - 0xa3c]
xor ebx, ebx
test edi, edi
sete bl
cmp edx, 8
jb 0x46fef6
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46feec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ff5d
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0xa54]
cmp edx, 8
jb 0x46ff32
mov ecx, dword [ebp - 0xa68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ff28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ff62
push edx
push ecx
call fcn.0056deb6
add esp, 8
lea ecx, [ebp - 0xaa0]
call fcn.0040a570
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.0056d977
mov esp, ebp
pop ebp
ret 4
call fcn.00574908
call fcn.00574908
int3