Function at 0x100a39d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1012e6f6
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x101636d0]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x101636d0]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], esi
call fcn.1005f360
xor ebx, ebx
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x17c], ebx
call fcn.100a3e40
mov dword [esp + 0x24], fcn.100cf978
mov dword [esp + 0x28], fcn.100cfa42
mov dword [esp + 0x2c], fcn.100cf89b
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x1fff8
mov dword [esp + 0x20], vtable.t_heap.0
mov byte [esp + 0x178], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x48]
cmp byte [esp + 0x158], bl
jne 0x100a3a86
mov eax, dword [esp + 0x44]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a3ad0
shr eax, 4
not al
and al, 1
je 0x100a3ad0
lea eax, [esp + 0x48]
cmp byte [esp + 0x158], bl
jne 0x100a3aaf
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea edx, [eax + 4]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.100aa050
test al, al
jne 0x100a3be4
push esi
lea ebx, [esp + 0x18]
lea edi, [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.100a9d80
test al, al
jne 0x100a3b52
mov ecx, esi
call fcn.100619a0
push str.loademptydict_failed.
push 0x1013c7e4
mov edx, eax
call fcn.10062cd0
mov byte [esp + 0x180], 0
mov esi, dword [esp + 0x38]
add esp, 8
test esi, esi
je 0x100a3b24
mov edi, dword [esp + 0x2c]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
test esi, esi
jne 0x100a3b15
cmp byte [esp + 0x158], 0
mov dword [esp + 0x3c], vtable.t_str.0
jne 0x100a3b4b
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x100a3b4b
push eax
call fcn.100cf89b
add esp, 4
xor al, al
jmp 0x100a3d17
cmp byte [esp + 0x158], 0
lea eax, [esp + 0x48]
jne 0x100a3b64
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x14]
push edi
push esi
mov esi, dword [esp + 0x20]
lea ecx, [eax + 4]
call fcn.100a9ea0
test al, al
jne 0x100a3bea
mov ecx, dword [esp + 0x1c]
call fcn.100619a0
push str.writetofile_failed.
push 0x1013c7e4
mov edx, eax
call fcn.10062cd0
mov byte [esp + 0x180], 0
mov esi, dword [esp + 0x38]
add esp, 8
test esi, esi
je 0x100a3bbf
mov edi, dword [esp + 0x2c]
jmp 0x100a3bb0
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
test esi, esi
jne 0x100a3bb0
cmp byte [esp + 0x158], 0
mov dword [esp + 0x3c], vtable.t_str.0
jne 0x100a3b4b
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
cmp eax, edx
jmp 0x100a3b40
mov edi, dword [esp + 0x14]
jmp 0x100a3bf0
mov esi, dword [esp + 0x1c]
xor ebx, ebx
lea eax, [esp + 0x48]
cmp byte [esp + 0x158], bl
jne 0x100a3c01
mov eax, dword [esp + 0x44]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a3c19
shr eax, 4
not al
and al, 1
jne 0x100a3c62
mov ecx, esi
call fcn.100619a0
push 0x10149c98
push 0x1013c7e4
mov edx, eax
call fcn.10062cd0
mov byte [esp + 0x180], bl
mov esi, dword [esp + 0x38]
add esp, 8
cmp esi, ebx
je 0x100a3c56
mov edi, dword [esp + 0x2c]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
cmp esi, ebx
jne 0x100a3c47
cmp byte [esp + 0x158], bl
jmp 0x100a3b2c
mov ecx, dword [esp + 0x38]
push esi
mov eax, edi
call fcn.100b51a0
cmp eax, ebx
jne 0x100a3cbb
mov ecx, esi
call fcn.100619a0
push 0x10149b14
push 0x1013c7e4
mov edx, eax
call fcn.10062cd0
mov byte [esp + 0x180], bl
mov esi, dword [esp + 0x38]
add esp, 8
cmp esi, ebx
je 0x100a3caf
mov edi, dword [esp + 0x2c]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
cmp esi, ebx
jne 0x100a3ca0
cmp byte [esp + 0x158], bl
jmp 0x100a3bc7
mov ecx, dword [esp + 0x18]
push edi
push ecx
push edi
push eax
call fcn.100d07bb
mov byte [esp + 0x188], bl
mov esi, dword [esp + 0x40]
add esp, 0x10
cmp esi, ebx
je 0x100a3cef
mov edi, dword [esp + 0x2c]
mov edi, edi
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
cmp esi, ebx
jne 0x100a3ce0
mov dword [esp + 0x3c], vtable.t_str.0
cmp byte [esp + 0x158], bl
jne 0x100a3d15
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
cmp eax, edx
je 0x100a3d15
push eax
call fcn.100cf89b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.100cf604
mov esp, ebp
pop ebp
ret 4