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

Disassembly:
push 0xffffffffffffffff
push 0x4d4964
mov eax, dword fs:[0]
push eax
mov eax, 0x1ba5c
call fcn.004bfc70
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x1ba58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ea93c]
xor eax, esp
push eax
lea eax, [esp + 0x1ba70]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1ba80]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebp, ebp
test byte [0x5793f4], 1
mov word [0x573e48], ax
mov word [0x572e48], cx
mov word [0x571e48], dx
mov byte [0x571cb4], al
jne 0x4aca70
or dword [0x5793f4], 1
mov dword [esp + 0x1ba78], ebp
mov ecx, 0x578ad8
call fcn.004a67a0
push 0x4d54e0
call fcn.004c2996
add esp, 4
mov dword [esp + 0x1ba78], 0xffffffff
mov ecx, 0x578ad8
mov dword [0x574e4c], 0x578ad8
call fcn.0047e6d0
mov ecx, 0x578b34
call fcn.0047e6d0
mov ecx, 0x578b90
call fcn.0047e6d0
mov al, byte [0x5323f1]
mov byte [0x5793f2], al
cmp ebx, ebp
jne 0x4acad1
mov ecx, dword [0x534544]
mov edx, dword [0x51e7a4]
push 0x578ad8
push 0x4a68c0
push ecx
push str.FINDFILES
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
je 0x4ad40d
push 0x4a9570
push ebp
push ebp
push 7
call fcn.004a11d0
push 0x4de398
call fcn.0049f0b0
xor eax, eax
cmp ebx, ebp
je 0x4acba2
jmp 0x4acb00
movzx ecx, word [eax + 0x54ecf4]
mov word [esp + eax + 0x7258], cx
add eax, 2
cmp cx, bp
jne 0x4acb00
push 0x4d67f0
mov ecx, 0x578b90
mov byte [0x5793ee], 1
mov byte [0x5793ed], 1
mov byte [0x5793ec], 0
call fcn.0047e700
mov ecx, 0x550d14
call fcn.0047e680
push 0x800
lea eax, [esp + 0x7a70]
push eax
mov ecx, 0x550d14
call fcn.0047e9b0
test al, al
je 0x4accac
jmp 0x4acb70
lea ecx, [esp + 0x7a6c]
push ecx
mov ecx, 0x578ad8
call fcn.0047e700
push 0x800
lea edx, [esp + 0x7a70]
push edx
mov ecx, 0x550d14
call fcn.0047e9b0
test al, al
jne 0x4acb70
jmp 0x4accac
mov word [esp + 0x7258], ax
cmp word [0x578bec], bp
je 0x4accac
cmp byte [0x5793ef], 0
je 0x4acbe4
lea edi, [esp + 0x7258]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4acbd0
mov ecx, dword [0x4de394]
mov dword [edi], ecx
cmp byte [0x5793f0], 0
je 0x4acc14
lea edi, [esp + 0x7258]
add edi, 0xfffffffe
jmp 0x4acc00
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4acc00
mov edx, dword [0x4de390]
mov dword [edi], edx
cmp byte [0x5793f1], 0
je 0x4acc43
lea edi, [esp + 0x7258]
add edi, 0xfffffffe
jmp 0x4acc30
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4acc30
mov eax, dword [0x4de38c]
mov dword [edi], eax
lea edi, [esp + 0x7258]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4acc50
mov ecx, dword [str.htc]
mov eax, 0x578bec
mov dword [edi], ecx
mov edx, eax
jmp 0x4acc70
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4acc70
lea edi, [esp + 0x7258]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4acc90
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4acc90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [0x5323f1], 0
je 0x4acccc
push 0x800
lea edx, [esp + 0x8a70]
push edx
mov ecx, 0x540eb0
call fcn.00414dc0
cmp byte [0x5793ec], 0
mov dword [0x574e48], ebp
mov byte [0x571cb5], 0
mov byte [0x571cb6], 1
je 0x4accf9
cmp byte [0x5793f2], 0
jne 0x4accf9
mov ecx, 2
jmp 0x4accfb
xor ecx, ecx
mov eax, 0x578b34
cmp ebx, ebp
je 0x4acd06
mov eax, ebx
push 3
push ebp
push ecx
push eax
lea ecx, [esp + 0x3240]
call fcn.00476e50
mov dword [esp + 0x1ba78], 1
lea ecx, [esp + 0x1184]
call fcn.00481670
lea ecx, [esp + 0x118c]
call fcn.00481670
lea ecx, [esp + 0x1194]
call fcn.00481670
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x3234]
call fcn.004776f0
test eax, eax
jne 0x4ad31e
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4acd70
cmp byte [0x5344c0], 0
jne 0x4ad31e
call fcn.00452b90
mov eax, dword [0x574e48]
cmp eax, ebp
je 0x4acda6
movzx ecx, byte [0x5793f2]
mov edx, dword [0x5323ec]
push ecx
push eax
push edx
call fcn.004a8f10
mov dword [0x574e48], ebp
cmp word [esp + 0x174], 0x2e
jne 0x4acdc3
cmp word [esp + 0x176], 0x5c
lea ecx, [esp + 0x178]
je 0x4acdca
lea ecx, [esp + 0x174]
lea edx, [esp + 0x9a6c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x4acdd1
push 0x50
lea eax, [esp + 0x9a70]
push eax
call fcn.00452d00
push eax
push 0x523
call fcn.004744a0
push eax
lea ecx, [esp + 0xaa74]
push ecx
mov edx, 0x800
call fcn.0043a6e0
mov eax, dword [0x5323ec]
add esp, 0xc
lea edx, [esp + 0xaa6c]
push edx
push 0x9b
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x5793ee], 0
je 0x4ace83
cmp byte [esp + 0x1180], 0
jne 0x4ace83
mov ecx, 0x578b90
call fcn.0047e680
mov ecx, 0x578b90
call fcn.0047ea80
mov esi, eax
cmp esi, ebp
je 0x4ace83
jmp 0x4ace60
push ebp
lea ecx, [esp + 0x178]
push ecx
push esi
call fcn.004521b0
test al, al
jne 0x4aceef
mov ecx, 0x578b90
call fcn.0047ea80
mov esi, eax
cmp esi, ebp
jne 0x4ace60
cmp byte [0x5793ed], 0
je 0x4ad302
cmp byte [esp + 0x1180], 0
je 0x4acea8
cmp word [esp + 0x7258], bp
jne 0x4ad302
mov ecx, 0x578ad8
call fcn.0047e680
mov ecx, 0x578ad8
call fcn.0047ea80
cmp eax, ebp
je 0x4ad302
push 4
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.004521b0
test al, al
jne 0x4ad223
mov ecx, 0x578ad8
call fcn.0047ea80
cmp eax, ebp
jne 0x4acec4
jmp 0x4ad302
cmp word [esi], 0x2a
jne 0x4acf24
cmp word [esi + 2], bp
jne 0x4acf24
cmp byte [0x5793f2], 0
jne 0x4acf24
push 1
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x188]
push edx
mov ecx, 0x540eb0
call fcn.00418dd0
test al, al
je 0x4ace83
cmp byte [0x5793f2], 0
mov esi, 2
mov dword [0x533494], esi
je 0x4acf3f
mov byte [0x5413b4], 1
cmp word [esp + 0x7258], bp
push 1
setne al
movzx ecx, al
push ecx
lea edx, [esp + 0x17c]
push edx
mov ecx, 0x540eb0
call fcn.004183d0
cmp eax, esi
jne 0x4acf78
call fcn.0045cfc0
test al, al
je 0x4ad31e
jmp 0x4ad302
cmp eax, 1
jne 0x4ace83
push 1
push ebp
push ebp
push ebp
lea ecx, [esp + 0x7a7c]
push ecx
lea edx, [esp + 0x188]
xor eax, eax
push edx
mov ecx, 0x540eb0
mov word [esp + 0x7a84], ax
call fcn.00418dd0
lea eax, [esp + 0x7a6c]
push eax
lea ecx, [esp + 0x178]
push ecx
call fcn.00485df0
test eax, eax
je 0x4ad056
lea edx, [esp + 0x7a6c]
push edx
call edi
cmp eax, 0xffffffff
jne 0x4ad302
push 0x4d680c
lea eax, [esp + 0x7a70]
push eax
call fcn.00460df0
lea ecx, [esp + 0x7a6c]
push ecx
lea edx, [esp + 0x178]
push edx
call fcn.00485df0
test eax, eax
je 0x4ad018
lea eax, [esp + 0x7a6c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4ad302
push 0x4d6814
lea ecx, [esp + 0x7a70]
push ecx
call fcn.00460df0
lea edx, [esp + 0x7a6c]
push edx
lea eax, [esp + 0x178]
push eax
call fcn.00485df0
test eax, eax
je 0x4ad056
lea ecx, [esp + 0x7a6c]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4ad302
cmp word [esp + 0x7258], bp
jne 0x4ad122
push 1
lea edx, [esp + 0x21e4]
push edx
mov ecx, 0x540eb0
xor ebx, ebx
call fcn.00414ae0
test al, al
je 0x4ad302
cmp byte [0x5344c0], 0
jne 0x4ad302
inc ebx
test bl, 0x1f
jne 0x4ad09a
call fcn.00452b90
mov ecx, 0x578ad8
call fcn.0047e680
mov ecx, 0x578ad8
call fcn.0047ea80
cmp eax, ebp
je 0x4ad101
push 4
lea ecx, [esp + 0x21e4]
push ecx
push eax
call fcn.004521b0
test al, al
jne 0x4ad0d6
mov ecx, 0x578ad8
call fcn.0047ea80
cmp eax, ebp
jne 0x4ad0b2
jmp 0x4ad101
mov edx, dword [esp + 0x31f0]
push 0x4d8490
push edx
call fcn.0043bea0
movzx eax, al
push eax
lea ecx, [esp + 0x21e8]
push ecx
lea edx, [esp + 0x180]
push edx
call fcn.004a4170
push 1
lea eax, [esp + 0x21e4]
push eax
mov ecx, 0x540eb0
call fcn.00414ae0
test al, al
jne 0x4ad082
jmp 0x4ad302
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x540eb0
call fcn.00414e10
mov ecx, 0x540eb0
call fcn.00413df0
and eax, 0x400
and edx, ebp
or eax, edx
je 0x4ad163
push 0x3ac
call fcn.004744a0
push eax
push 0x54fd12
call fcn.004abfe0
add esp, 8
jmp 0x4ad302
push ebp
call fcn.00498e30
push 0x800
push 0x54fd12
mov ecx, 0x540eb0
call fcn.00414de0
mov edx, dword [esp + 0x94]
mov ecx, 0x550d14
mov dword [0x54ccb0], edx
call fcn.0047e6d0
mov ecx, 0x578ad8
call fcn.0047e680
mov ecx, 0x578ad8
call fcn.0047ea80
cmp eax, ebp
je 0x4ad1c9
lea esp, [esp]
push eax
mov ecx, 0x550d14
call fcn.0047e700
mov ecx, 0x578ad8
call fcn.0047ea80
cmp eax, ebp
jne 0x4ad1b0
lea eax, [esp + 0x7258]
push eax
push 0x4de380
push 0x54ecf2
mov edx, 0x810
mov byte [0x54abd1], 1
mov dword [0x54abb0], ebp
mov dword [0x54abb4], ebp
mov dword [0x54abb8], ebp
mov dword [0x54abbc], ebp
call fcn.0043a6e0
add esp, 0xc
mov ecx, 0x540eb0
mov byte [0x54ecc8], 1
mov dword [0x533494], esi
call fcn.00413d60
jmp 0x4ad302
cmp word [esp + 0x7258], bp
jne 0x4ad25b
lea edx, [esp + 0x174]
push edx
push ebp
lea eax, [esp + 0x7260]
push eax
push ebp
push ebp
call fcn.00441490
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0xba7c]
push ecx
call fcn.00441490
jmp 0x4ad302
lea ecx, [esp + 0x11bc]
call fcn.0043acd0
mov byte [esp + 0x1ba78], 2
push 4
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0x11c4]
call fcn.0043ad10
test al, al
je 0x4ad2ee
lea eax, [esp + 0x174]
push eax
push ebp
lea ecx, [esp + 0x7260]
push ecx
push ebp
push ebp
call fcn.00441490
push 0x10000
lea edx, [esp + 0xba70]
push edx
lea ecx, [esp + 0x11c4]
call fcn.0043b730
cmp eax, ebp
je 0x4ad2ee
mov edi, edi
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0xba7c]
push eax
call fcn.00441490
push 0x10000
lea ecx, [esp + 0xba70]
push ecx
lea ecx, [esp + 0x11c4]
call fcn.0043b730
cmp eax, ebp
jne 0x4ad2c0
mov byte [esp + 0x1ba78], 1
lea ecx, [esp + 0x11bc]
call fcn.0043b3e0
lea edx, [esp + 0x174]
push edx
lea ecx, [esp + 0x3234]
call fcn.004776f0
test eax, eax
je 0x4acd70
cmp byte [0x5344c0], 0
mov byte [0x571cb6], 0
je 0x4ad33e
cmp byte [0x571cb4], 0
je 0x4ad33e
mov byte [0x5344c0], 0
mov eax, dword [0x574e48]
cmp eax, ebp
je 0x4ad362
movzx ecx, byte [0x5793f2]
mov edx, dword [0x5323ec]
push ecx
push eax
push edx
call fcn.004a8f10
mov dword [0x574e48], ebp
push 0x270
mov byte [0x571cb5], 0
call fcn.004744a0
push eax
mov eax, dword [0x5323ec]
push 0x9b
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x5344c0], 0
je 0x4ad39d
mov ecx, dword [0x5323ec]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4ad3a2
call fcn.0049ec20
cmp word [0x572e48], bp
je 0x4ad3c5
push 0x572e48
mov ecx, 0x53ed88
call fcn.00450300
cmp word [0x573e48], bp
je 0x4ad3e7
jmp 0x4ad3d8
cmp word [0x573e48], bp
je 0x4ad3f6
mov ecx, 0x53ed88
call fcn.0044e740
push 0x573e48
mov ecx, 0x53ed88
call fcn.004503d0
push 0x571e48
mov ecx, 0x53ed88
call fcn.0044e7b0
mov dword [esp + 0x1ba78], 0xffffffff
lea ecx, [esp + 0x3230]
call fcn.004770c0
mov ecx, dword [esp + 0x1ba70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1ba58]
xor ecx, esp
call fcn.004bfc52
add esp, 0x1ba68
ret 4