Function at 0x100451d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb9f6
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x8c], eax
je 0x10045249
mov esi, 0x10
cmp dword [edi + 0x14], esi
jb 0x1004521d
mov eax, dword [edi]
jmp 0x1004521f
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
je 0x10045249
cmp dword [edi + 0x14], esi
jb 0x10045238
mov eax, dword [edi]
jmp 0x1004523a
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x100452d7
push edi
lea esi, [ebp - 0x30]
call fcn.1005e7e0
mov ebx, eax
mov dword [ebp - 4], 0
call fcn.10043e20
mov edi, eax
lea esi, [edi + 0x40]
test esi, esi
je 0x1004526e
lea eax, [edi + 0x50]
jmp 0x10045270
xor eax, eax
push str.check_file_
push eax
call fcn.100418d0
add esp, 8
test esi, esi
je 0x10045287
lea eax, [edi + 0x50]
jmp 0x10045289
xor eax, eax
push ebx
push eax
call fcn.10012d70
add esp, 8
test esi, esi
je 0x1004529c
lea eax, [edi + 0x50]
jmp 0x1004529e
xor eax, eax
push str._md5_failed__not_exist
push eax
call fcn.100418d0
mov ecx, fcn.10043ea0
add esp, 8
test ecx, ecx
je 0x100452be
push edi
call fcn.10043ea0
add esp, 4
cmp dword [ebp - 0x1c], 0x10
jb 0x100452d0
mov edx, dword [ebp - 0x30]
push edx
call fcn.100719b6
add esp, 4
xor al, al
jmp 0x100455a5
push 0x5c
call fcn.10071bdd
mov esi, eax
add esp, 4
test esi, esi
je 0x100452fa
push esi
call fcn.10094570
mov ebx, esi
add esp, 4
mov dword [ebp - 0x88], ebx
jmp 0x1004530a
mov dword [ebp - 0x88], 0
mov ebx, dword [ebp - 0x88]
mov dword [ebp - 0x90], ebx
push ebx
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.10042db0
test al, al
jne 0x100453c1
push edi
lea esi, [ebp - 0x30]
call fcn.1005e7e0
mov ebx, eax
mov byte [ebp - 4], 2
call fcn.10043e20
mov edi, eax
lea esi, [edi + 0x40]
test esi, esi
je 0x10045349
lea eax, [edi + 0x50]
jmp 0x1004534b
xor eax, eax
push str.check_file_
push eax
call fcn.100418d0
add esp, 8
test esi, esi
je 0x10045362
lea eax, [edi + 0x50]
jmp 0x10045364
xor eax, eax
push ebx
push eax
call fcn.10012d70
add esp, 8
test esi, esi
je 0x10045377
lea eax, [edi + 0x50]
jmp 0x10045379
xor eax, eax
push str._md5_failed__read_or_open_fail
push eax
call fcn.100418d0
mov eax, fcn.10043ea0
add esp, 8
test eax, eax
je 0x10045399
push edi
call fcn.10043ea0
add esp, 4
cmp dword [ebp - 0x1c], 0x10
jb 0x100453ab
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.100719b6
add esp, 4
mov edx, dword [ebp - 0x88]
push edx
call fcn.100719b6
add esp, 4
xor al, al
jmp 0x100455a5
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.10094f30
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
lea esi, [ebp - 0x4c]
mov dword [eax + 0xc], edx
call fcn.100467c0
mov eax, dword [ebp - 0x8c]
push eax
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.1003b8c0
add esp, 0x14
mov eax, esi
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.10046810
test al, al
je 0x1004555b
push edi
lea esi, [ebp - 0x84]
call fcn.1005e7e0
mov ebx, eax
mov byte [ebp - 4], 5
call fcn.10043e20
mov esi, eax
lea edi, [esi + 0x40]
test edi, edi
je 0x1004544e
lea eax, [esi + 0x50]
jmp 0x10045450
xor eax, eax
push str.check_file_
push eax
call fcn.100418d0
add esp, 8
test edi, edi
je 0x10045467
lea eax, [esi + 0x50]
jmp 0x10045469
xor eax, eax
push ebx
push eax
call fcn.10012d70
add esp, 8
call fcn.10046870
mov edi, eax
lea esi, [edi + 0x40]
xor ebx, ebx
cmp esi, ebx
je 0x10045488
lea eax, [edi + 0x50]
jmp 0x1004548a
xor eax, eax
push str.local:
push eax
call fcn.100418d0
add esp, 8
cmp esi, ebx
je 0x100454a1
lea eax, [edi + 0x50]
jmp 0x100454a3
xor eax, eax
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.10012d70
add esp, 8
cmp esi, ebx
je 0x100454b9
lea eax, [edi + 0x50]
jmp 0x100454bb
xor eax, eax
push str.__expect:
push eax
call fcn.100418d0
add esp, 8
cmp esi, ebx
je 0x100454d2
lea eax, [edi + 0x50]
jmp 0x100454d4
xor eax, eax
mov edx, dword [ebp - 0x8c]
push edx
push eax
call fcn.10012d70
mov eax, fcn.10043ea0
add esp, 8
test eax, eax
je 0x100454f6
push edi
call fcn.10043ea0
add esp, 4
mov edi, 0x10
cmp dword [ebp - 0x70], edi
jb 0x1004550f
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.100719b6
add esp, 4
cmp dword [ebp - 0x54], edi
jb 0x10045520
mov edx, dword [ebp - 0x68]
push edx
call fcn.100719b6
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
cmp dword [ebp - 0x38], edi
jb 0x1004553f
mov eax, dword [ebp - 0x4c]
push eax
call fcn.100719b6
add esp, 4
mov ecx, dword [ebp - 0x88]
push ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.100719b6
add esp, 4
xor al, al
jmp 0x100455a5
cmp dword [ebp - 0x54], 0x10
jb 0x1004556d
mov edx, dword [ebp - 0x68]
push edx
call fcn.100719b6
add esp, 4
xor edi, edi
cmp dword [ebp - 0x38], 0x10
mov esi, 0xf
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], edi
mov byte [ebp - 0x68], 0
jb 0x10045590
mov eax, dword [ebp - 0x4c]
push eax
call fcn.100719b6
add esp, 4
push ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x4c], 0
call fcn.100719b6
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret