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

Disassembly:
push 0xffffffffffffffff
push 0x4d6344
mov eax, dword fs:[0]
push eax
mov eax, 0x1ba5c
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x1ba58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb0b4]
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 [0x579b4c], 1
mov word [0x5745a0], ax
mov word [0x5735a0], cx
mov word [0x5725a0], dx
mov byte [0x57240c], al
jne 0x4ae0f0
or dword [0x579b4c], 1
mov dword [esp + 0x1ba78], ebp
mov ecx, 0x579230
call fcn.004a7f80
push 0x4d6ec0
call fcn.004c42f6
add esp, 4
mov dword [esp + 0x1ba78], 0xffffffff
mov ecx, 0x579230
mov dword [0x5755a4], 0x579230
call fcn.0047fa10
mov ecx, 0x57928c
call fcn.0047fa10
mov ecx, 0x5792e8
call fcn.0047fa10
mov al, byte [0x532b51]
mov byte [0x579b4a], al
cmp ebx, ebp
jne 0x4ae151
mov ecx, dword [0x534ca4]
mov edx, dword [0x51ef04]
push 0x579230
push 0x4a8090
push ecx
push str.FINDFILES
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
je 0x4aeac8
push 0x4aadb0
push ebp
push ebp
push 7
call fcn.004a27f0
push 0x4df3ec
call fcn.004a0690
xor eax, eax
cmp ebx, ebp
je 0x4ae222
jmp 0x4ae180
movzx ecx, word [eax + 0x54f454]
mov word [esp + eax + 0x7258], cx
add eax, 2
cmp cx, bp
jne 0x4ae180
push 0x4d7800
mov ecx, 0x5792e8
mov byte [0x579b46], 1
mov byte [0x579b45], 1
mov byte [0x579b44], 0
call fcn.0047fa40
mov ecx, 0x551474
call fcn.0047f9c0
push 0x800
lea eax, [esp + 0x7a70]
push eax
mov ecx, 0x551474
call fcn.0047fc50
test al, al
je 0x4ae32c
jmp 0x4ae1f0
lea ecx, [esp + 0x7a6c]
push ecx
mov ecx, 0x579230
call fcn.0047fa40
push 0x800
lea edx, [esp + 0x7a70]
push edx
mov ecx, 0x551474
call fcn.0047fc50
test al, al
jne 0x4ae1f0
jmp 0x4ae32c
mov word [esp + 0x7258], ax
cmp word [0x579344], bp
je 0x4ae32c
cmp byte [0x579b47], 0
je 0x4ae264
lea edi, [esp + 0x7258]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4ae250
mov ecx, dword [0x4df3e8]
mov dword [edi], ecx
cmp byte [0x579b48], 0
je 0x4ae294
lea edi, [esp + 0x7258]
add edi, 0xfffffffe
jmp 0x4ae280
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4ae280
mov edx, dword [0x4df3e4]
mov dword [edi], edx
cmp byte [0x579b49], 0
je 0x4ae2c3
lea edi, [esp + 0x7258]
add edi, 0xfffffffe
jmp 0x4ae2b0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4ae2b0
mov eax, dword [0x4df3e0]
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 0x4ae2d0
mov ecx, dword [str.htc]
mov eax, 0x579344
mov dword [edi], ecx
mov edx, eax
jmp 0x4ae2f0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4ae2f0
lea edi, [esp + 0x7258]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4ae310
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4ae310
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 [0x532b51], 0
je 0x4ae34c
push 0x800
lea edx, [esp + 0x8a70]
push edx
mov ecx, 0x541610
call fcn.00415300
cmp byte [0x579b44], 0
mov dword [0x5755a0], ebp
mov byte [0x57240d], 0
mov byte [0x57240e], 1
je 0x4ae379
cmp byte [0x579b4a], 0
jne 0x4ae379
mov ecx, 2
jmp 0x4ae37b
xor ecx, ecx
mov eax, 0x57928c
cmp ebx, ebp
je 0x4ae386
mov eax, ebx
push 3
push ebp
push ecx
push eax
lea ecx, [esp + 0x3240]
call fcn.00477f90
mov dword [esp + 0x1ba78], 1
lea ecx, [esp + 0x1184]
call fcn.004072b0
lea ecx, [esp + 0x118c]
call fcn.004072b0
lea ecx, [esp + 0x1194]
call fcn.004072b0
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x3234]
call fcn.00478830
test eax, eax
jne 0x4ae99e
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4ae3f0
cmp byte [0x534c20], 0
jne 0x4ae99e
call fcn.00453710
mov eax, dword [0x5755a0]
cmp eax, ebp
je 0x4ae426
movzx ecx, byte [0x579b4a]
mov edx, dword [0x532b4c]
push ecx
push eax
push edx
call fcn.004aa760
mov dword [0x5755a0], ebp
cmp word [esp + 0x174], 0x2e
jne 0x4ae443
cmp word [esp + 0x176], 0x5c
lea ecx, [esp + 0x178]
je 0x4ae44a
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 0x4ae451
push 0x50
lea eax, [esp + 0x9a70]
push eax
call fcn.004537c0
push eax
push 0x523
call fcn.00475570
push eax
lea ecx, [esp + 0xaa74]
push ecx
mov edx, 0x800
call fcn.0041cb70
mov eax, dword [0x532b4c]
add esp, 0xc
lea edx, [esp + 0xaa6c]
push edx
push 0x9b
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x579b46], 0
je 0x4ae503
cmp byte [esp + 0x1180], 0
jne 0x4ae503
mov ecx, 0x5792e8
call fcn.0047f9c0
mov ecx, 0x5792e8
call fcn.0047fd20
mov esi, eax
cmp esi, ebp
je 0x4ae503
jmp 0x4ae4e0
push ebp
lea ecx, [esp + 0x178]
push ecx
push esi
call fcn.00452e00
test al, al
jne 0x4ae56f
mov ecx, 0x5792e8
call fcn.0047fd20
mov esi, eax
cmp esi, ebp
jne 0x4ae4e0
cmp byte [0x579b45], 0
je 0x4ae982
cmp byte [esp + 0x1180], 0
je 0x4ae528
cmp word [esp + 0x7258], bp
jne 0x4ae982
mov ecx, 0x579230
call fcn.0047f9c0
mov ecx, 0x579230
call fcn.0047fd20
cmp eax, ebp
je 0x4ae982
push 4
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.00452e00
test al, al
jne 0x4ae8a3
mov ecx, 0x579230
call fcn.0047fd20
cmp eax, ebp
jne 0x4ae544
jmp 0x4ae982
cmp word [esi], 0x2a
jne 0x4ae5a4
cmp word [esi + 2], bp
jne 0x4ae5a4
cmp byte [0x579b4a], 0
jne 0x4ae5a4
push 1
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x188]
push edx
mov ecx, 0x541610
call fcn.00419370
test al, al
je 0x4ae503
cmp byte [0x579b4a], 0
mov esi, 2
mov dword [0x533bf4], esi
je 0x4ae5bf
mov byte [0x541b14], 1
cmp word [esp + 0x7258], bp
push 1
setne al
movzx ecx, al
push ecx
lea edx, [esp + 0x17c]
push edx
mov ecx, 0x541610
call fcn.00418940
cmp eax, esi
jne 0x4ae5f8
call fcn.0045dcd0
test al, al
je 0x4ae99e
jmp 0x4ae982
cmp eax, 1
jne 0x4ae503
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, 0x541610
mov word [esp + 0x7a84], ax
call fcn.00419370
lea eax, [esp + 0x7a6c]
push eax
lea ecx, [esp + 0x178]
push ecx
call fcn.00486fc0
test eax, eax
je 0x4ae6d6
lea edx, [esp + 0x7a6c]
push edx
call edi
cmp eax, 0xffffffff
jne 0x4ae982
push 0x4d781c
lea eax, [esp + 0x7a70]
push eax
call fcn.00461af0
lea ecx, [esp + 0x7a6c]
push ecx
lea edx, [esp + 0x178]
push edx
call fcn.00486fc0
test eax, eax
je 0x4ae698
lea eax, [esp + 0x7a6c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4ae982
push 0x4d7824
lea ecx, [esp + 0x7a70]
push ecx
call fcn.00461af0
lea edx, [esp + 0x7a6c]
push edx
lea eax, [esp + 0x178]
push eax
call fcn.00486fc0
test eax, eax
je 0x4ae6d6
lea ecx, [esp + 0x7a6c]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4ae982
cmp word [esp + 0x7258], bp
jne 0x4ae7a2
push 1
lea edx, [esp + 0x21e4]
push edx
mov ecx, 0x541610
xor ebx, ebx
call fcn.00415020
test al, al
je 0x4ae982
cmp byte [0x534c20], 0
jne 0x4ae982
inc ebx
test bl, 0x1f
jne 0x4ae71a
call fcn.00453710
mov ecx, 0x579230
call fcn.0047f9c0
mov ecx, 0x579230
call fcn.0047fd20
cmp eax, ebp
je 0x4ae781
push 4
lea ecx, [esp + 0x21e4]
push ecx
push eax
call fcn.00452e00
test al, al
jne 0x4ae756
mov ecx, 0x579230
call fcn.0047fd20
cmp eax, ebp
jne 0x4ae732
jmp 0x4ae781
mov edx, dword [esp + 0x31f0]
push 0x4d947c
push edx
call fcn.0043c570
movzx eax, al
push eax
lea ecx, [esp + 0x21e8]
push ecx
lea edx, [esp + 0x180]
push edx
call fcn.004a5860
push 1
lea eax, [esp + 0x21e4]
push eax
mov ecx, 0x541610
call fcn.00415020
test al, al
jne 0x4ae702
jmp 0x4ae982
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x541610
call fcn.00415350
mov ecx, 0x541610
call fcn.004143e0
and eax, 0x400
and edx, ebp
or eax, edx
je 0x4ae7e3
push 0x3ac
call fcn.00475570
push eax
push 0x550472
call fcn.004ad680
add esp, 8
jmp 0x4ae982
push ebp
call fcn.0049b270
push 0x800
push 0x550472
mov ecx, 0x541610
call fcn.00415320
mov edx, dword [esp + 0x94]
mov ecx, 0x551474
mov dword [0x54d410], edx
call fcn.0047fa10
mov ecx, 0x579230
call fcn.0047f9c0
mov ecx, 0x579230
call fcn.0047fd20
cmp eax, ebp
je 0x4ae849
lea esp, [esp]
push eax
mov ecx, 0x551474
call fcn.0047fa40
mov ecx, 0x579230
call fcn.0047fd20
cmp eax, ebp
jne 0x4ae830
lea eax, [esp + 0x7258]
push eax
push 0x4df3d4
push 0x54f452
mov edx, 0x810
mov byte [0x54b331], 1
mov dword [0x54b310], ebp
mov dword [0x54b314], ebp
mov dword [0x54b318], ebp
mov dword [0x54b31c], ebp
call fcn.0041cb70
add esp, 0xc
mov ecx, 0x541610
mov byte [0x54f42c], 1
mov dword [0x533bf4], esi
call fcn.00414350
jmp 0x4ae982
cmp word [esp + 0x7258], bp
jne 0x4ae8db
lea edx, [esp + 0x174]
push edx
push ebp
lea eax, [esp + 0x7260]
push eax
push ebp
push ebp
call fcn.00441c00
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0xba7c]
push ecx
call fcn.00441c00
jmp 0x4ae982
lea ecx, [esp + 0x11bc]
call fcn.0043b3a0
mov byte [esp + 0x1ba78], 2
push 4
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0x11c4]
call fcn.0043b3e0
test al, al
je 0x4ae96e
lea eax, [esp + 0x174]
push eax
push ebp
lea ecx, [esp + 0x7260]
push ecx
push ebp
push ebp
call fcn.00441c00
push 0x10000
lea edx, [esp + 0xba70]
push edx
lea ecx, [esp + 0x11c4]
call fcn.0043be00
cmp eax, ebp
je 0x4ae96e
mov edi, edi
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0xba7c]
push eax
call fcn.00441c00
push 0x10000
lea ecx, [esp + 0xba70]
push ecx
lea ecx, [esp + 0x11c4]
call fcn.0043be00
cmp eax, ebp
jne 0x4ae940
mov byte [esp + 0x1ba78], 1
lea ecx, [esp + 0x11bc]
call fcn.0043bab0
lea edx, [esp + 0x174]
push edx
lea ecx, [esp + 0x3234]
call fcn.00478830
test eax, eax
je 0x4ae3f0
cmp byte [0x534c20], 0
mov byte [0x57240e], 0
je 0x4ae9be
cmp byte [0x57240c], 0
je 0x4ae9be
mov byte [0x534c20], 0
mov eax, dword [0x5755a0]
cmp eax, ebp
je 0x4ae9e2
movzx ecx, byte [0x579b4a]
mov edx, dword [0x532b4c]
push ecx
push eax
push edx
call fcn.004aa760
mov dword [0x5755a0], ebp
push 0x270
mov byte [0x57240d], 0
call fcn.00475570
push eax
mov eax, dword [0x532b4c]
push 0x9b
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x534c20], 0
je 0x4aea1d
mov ecx, dword [0x532b4c]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4aea22
call fcn.004a0200
cmp word [0x5735a0], bp
je 0x4aea63
push 0x5735a0
mov ecx, 0x53f4e8
call fcn.00450ed0
cmp word [0x5745a0], bp
je 0x4aea52
push 0x5745a0
mov ecx, 0x53f4e8
call fcn.00450ff0
push 0x5725a0
mov ecx, 0x53f4e8
call fcn.0044f360
jmp 0x4aeab1
cmp word [0x5745a0], bp
je 0x4aea96
mov ecx, 0x53f4e8
call fcn.0044f2f0
push 0x5745a0
mov ecx, 0x53f4e8
call fcn.00450ff0
push 0x5725a0
mov ecx, 0x53f4e8
call fcn.0044f360
jmp 0x4aeab1
cmp byte [0x532b51], 0
je 0x4aeab1
lea edx, [esp + 0x8a6c]
push edx
mov ecx, 0x541610
call fcn.004151e0
mov dword [esp + 0x1ba78], 0xffffffff
lea ecx, [esp + 0x3230]
call fcn.00478200
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.004c1302
add esp, 0x1ba68
ret 4