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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50f296
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x5405a0]
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.00436e90
xor ebx, ebx
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x17c], ebx
call fcn.00472c90
mov dword [esp + 0x24], fcn.004ccfcd
mov dword [esp + 0x28], fcn.004cf168
mov dword [esp + 0x2c], fcn.004ccef0
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 0x4728d6
mov eax, dword [esp + 0x44]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47291e
shr eax, 4
not al
and al, 1
je 0x47291e
lea eax, [esp + 0x48]
cmp byte [esp + 0x158], bl
jne 0x4728ff
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x28]
lea ecx, [eax + 4]
push edx
lea ebx, [esp + 0x24]
call fcn.00478a50
test al, al
jne 0x472a34
push esi
lea ebx, [esp + 0x18]
lea edi, [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.00478780
test al, al
jne 0x4729a0
mov ecx, esi
call fcn.00439450
push str.loademptydict_failed.
push 0x52139c
mov edx, eax
call fcn.0043a8a0
mov byte [esp + 0x180], 0
mov esi, dword [esp + 0x38]
add esp, 8
test esi, esi
je 0x472972
mov edi, dword [esp + 0x2c]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
test esi, esi
jne 0x472963
cmp byte [esp + 0x158], 0
mov dword [esp + 0x3c], vtable.t_str.0
jne 0x472999
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x472999
push eax
call fcn.004ccef0
add esp, 4
xor al, al
jmp 0x472b67
cmp byte [esp + 0x158], 0
lea eax, [esp + 0x48]
jne 0x4729b2
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push edi
add eax, 4
push eax
call fcn.004788a0
test al, al
jne 0x472a3a
mov ecx, ebx
call fcn.00439450
push str.writetofile_failed.
push 0x52139c
mov edx, eax
call fcn.0043a8a0
mov byte [esp + 0x180], 0
mov esi, dword [esp + 0x38]
add esp, 8
test esi, esi
je 0x472a0f
mov edi, dword [esp + 0x2c]
jmp 0x472a00
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
test esi, esi
jne 0x472a00
cmp byte [esp + 0x158], 0
mov dword [esp + 0x3c], vtable.t_str.0
jne 0x472999
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
cmp eax, edx
jmp 0x47298e
mov edi, dword [esp + 0x14]
jmp 0x472a3c
mov esi, ebx
xor ebx, ebx
lea eax, [esp + 0x48]
cmp byte [esp + 0x158], bl
jne 0x472a4f
mov eax, dword [esp + 0x44]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472a67
shr eax, 4
not al
and al, 1
jne 0x472ab0
mov ecx, esi
call fcn.00439450
push 0x52d5cc
push 0x52139c
mov edx, eax
call fcn.0043a8a0
mov byte [esp + 0x180], bl
mov esi, dword [esp + 0x38]
add esp, 8
cmp esi, ebx
je 0x472aa4
mov edi, dword [esp + 0x2c]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
cmp esi, ebx
jne 0x472a95
cmp byte [esp + 0x158], bl
jmp 0x47297a
mov ecx, dword [esp + 0x38]
push esi
mov eax, edi
call fcn.00484e90
cmp eax, ebx
jne 0x472b0b
mov ecx, esi
call fcn.00439450
push 0x52d494
push 0x52139c
mov edx, eax
call fcn.0043a8a0
mov byte [esp + 0x180], bl
mov esi, dword [esp + 0x38]
add esp, 8
cmp esi, ebx
je 0x472aff
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 0x472af0
cmp byte [esp + 0x158], bl
jmp 0x472a17
mov ecx, dword [esp + 0x18]
push edi
push ecx
push edi
push eax
call fcn.004d0a60
mov byte [esp + 0x188], bl
mov esi, dword [esp + 0x40]
add esp, 0x10
cmp esi, ebx
je 0x472b3f
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 0x472b30
mov dword [esp + 0x3c], vtable.t_str.0
cmp byte [esp + 0x158], bl
jne 0x472b65
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
cmp eax, edx
je 0x472b65
push eax
call fcn.004ccef0
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.004ccee1
mov esp, ebp
pop ebp
ret 4