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

Disassembly:
push 0xffffffffffffffff
push 0x4b6a14
mov eax, dword fs:[0]
push eax
mov eax, 0x1727c
call fcn.004a4220
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x17278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ca3b0]
xor eax, esp
push eax
lea eax, [esp + 0x17290]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x172a0]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebp, ebp
test byte [0x513c50], 1
mov word [0x510dc8], ax
mov word [0x5105c8], cx
mov word [0x50fdc8], dx
jne 0x4932fb
or dword [0x513c50], 1
mov dword [esp + 0x17298], ebp
mov ecx, 0x513650
call fcn.0048fb90
push 0x4b7430
call fcn.004a6327
add esp, 4
mov dword [esp + 0x17298], 0xffffffff
mov ecx, 0x513650
mov dword [0x5115cc], 0x513650
call fcn.0046a1d0
mov ecx, 0x5136f8
call fcn.0046a1d0
mov ecx, 0x5137a0
call fcn.0046a1d0
mov al, byte [0x4e7b89]
mov byte [0x513c4e], al
cmp ebx, ebp
jne 0x49335c
mov ecx, dword [0x4e8cd4]
mov edx, dword [0x4d56b0]
push 0x513650
push 0x48d520
push ecx
push str.FINDFILES
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
je 0x493c16
push 0x490310
push ebp
push ebp
push 7
call fcn.004878a0
push 0x4bf4f4
call fcn.00485750
cmp ebx, ebp
je 0x493448
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x4f5fe4]
mov byte [esp + eax + 0x4e80], cl
inc eax
test cl, cl
jne 0x493380
mov byte [0x513c48], cl
push 0x4b8eec
mov ecx, 0x5137a0
mov byte [0x513c4a], 1
mov byte [0x513c49], 1
call fcn.0046a5c0
mov ecx, dword [0x4f7814]
call fcn.0046a170
push 0x400
lea eax, [esp + 0x5a90]
push eax
lea ecx, [esp + 0x5294]
push ecx
mov ecx, dword [0x4f7814]
call fcn.0046a690
test al, al
je 0x493519
jmp 0x4933f0
push 0x400
lea edx, [esp + 0x5a90]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x5298]
push ecx
call fcn.00451280
lea edx, [esp + 0x5a8c]
push edx
mov ecx, 0x513650
call fcn.0046a5c0
push 0x400
lea eax, [esp + 0x5a90]
push eax
lea ecx, [esp + 0x5294]
push ecx
mov ecx, dword [0x4f7814]
call fcn.0046a690
test al, al
jne 0x4933f0
jmp 0x493519
cmp byte [0x513848], 0
mov byte [esp + 0x4e80], 0
je 0x493519
cmp byte [0x513c4b], 0
je 0x493482
lea edi, [esp + 0x4e80]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x493470
mov dx, word [0x4bf4f0]
mov word [edi], dx
cmp byte [0x513c4c], 0
je 0x4934a4
lea edi, [esp + 0x4e80]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x493493
mov ax, word [0x4bf4ec]
mov word [edi], ax
cmp byte [0x513c4d], 0
je 0x4934c7
lea edi, [esp + 0x4e80]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4934b5
mov cx, word [0x4bf4e8]
mov word [edi], cx
lea edi, [esp + 0x4e80]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4934d0
mov dx, word [str.htc]
mov eax, 0x513848
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4934f0
lea edi, [esp + 0x4e80]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x493501
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 [0x4e7b89], 0
je 0x493539
push 0x400
lea eax, [esp + 0x6290]
push eax
mov ecx, 0x4eeda0
call fcn.00412ff0
cmp byte [0x513c48], 0
mov dword [0x5115c8], ebp
mov byte [0x50fc34], 0
mov byte [0x50fc35], 1
mov edi, 2
je 0x493568
cmp byte [0x513c4e], 0
jne 0x493568
mov ecx, edi
jmp 0x49356a
xor ecx, ecx
mov eax, 0x5136f8
cmp ebx, ebp
je 0x493575
mov eax, ebx
push ebp
push ebp
push ecx
push eax
lea ecx, [esp + 0x2a64]
call fcn.00462f30
mov dword [esp + 0x17298], 1
lea ecx, [esp + 0xd78]
call fcn.0046cee0
lea ecx, [esp + 0xd9c]
call fcn.0046cee0
lea ecx, [esp + 0xdc0]
call fcn.0046cee0
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x2a58]
call fcn.00463a80
test eax, eax
jne 0x493b40
cmp byte [0x4e8c4c], 0
jne 0x493b40
call fcn.004468f0
mov eax, dword [0x5115c8]
cmp eax, ebp
je 0x493605
movzx edx, byte [0x513c4e]
push edx
push eax
mov eax, dword [0x4e7b84]
push eax
call fcn.0048fc70
mov dword [0x5115c8], ebp
cmp word [esp + 0x564], 0x2e
jne 0x493622
cmp word [esp + 0x566], 0x5c
lea ecx, [esp + 0x568]
je 0x493629
lea ecx, [esp + 0x564]
lea edx, [esp + 0x5a8c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, edi
add edx, edi
cmp ax, bp
jne 0x493630
push 0x50
lea ecx, [esp + 0x5a90]
push ecx
call fcn.004464c0
push eax
push 0x523
call fcn.00460760
push eax
lea edx, [esp + 0x6a94]
push edx
mov edx, 0x400
call fcn.00495900
mov ecx, dword [0x4e7b84]
add esp, 0xc
lea eax, [esp + 0x6a8c]
push eax
push 0x9b
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x513c4a], 0
je 0x4936d3
mov ecx, 0x5137a0
call fcn.0046a170
mov ecx, 0x5137a0
call fcn.0046a830
mov esi, eax
cmp esi, ebp
je 0x4936d3
lea esp, [esp]
push ebp
lea edx, [esp + 0x568]
push edx
push esi
call fcn.00445d90
test al, al
jne 0x49372b
mov ecx, 0x5137a0
call fcn.0046a830
mov esi, eax
cmp esi, ebp
jne 0x4936b0
cmp byte [0x513c49], 0
je 0x493b24
mov ecx, 0x513650
call fcn.0046a170
mov ecx, 0x513650
call fcn.0046a830
cmp eax, ebp
je 0x493b24
lea esp, [esp]
push 4
lea ecx, [esp + 0x568]
push ecx
push eax
call fcn.00445d90
test al, al
jne 0x493a23
mov ecx, 0x513650
call fcn.0046a830
cmp eax, ebp
jne 0x493700
jmp 0x493b24
cmp word [esi], 0x2a
jne 0x493760
cmp word [esi + 2], bp
jne 0x493760
cmp byte [0x513c4e], 0
jne 0x493760
push 1
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x578]
push eax
mov ecx, 0x4eeda0
call fcn.00414f30
test al, al
je 0x4936d3
cmp byte [0x513c4e], 0
mov dword [0x4e842c], edi
je 0x493776
mov byte [0x4f02d2], 1
cmp byte [esp + 0x4e80], 0
push 1
setne cl
movzx edx, cl
push edx
lea eax, [esp + 0x56c]
push eax
mov ecx, 0x4eeda0
call fcn.00414630
cmp eax, edi
jne 0x4937af
call fcn.0044ed30
test al, al
je 0x493b40
jmp 0x493b24
cmp eax, 1
jne 0x4936d3
push eax
push ebp
push ebp
push ebp
xor ecx, ecx
lea edx, [esp + 0x529c]
push edx
lea eax, [esp + 0x578]
mov word [esp + 0x52a0], cx
push eax
mov ecx, 0x4eeda0
call fcn.00414f30
lea ecx, [esp + 0x528c]
push ecx
lea edx, [esp + 0x568]
push edx
call fcn.00472870
test eax, eax
je 0x493892
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x528c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x493b24
push 0x4b8d10
lea ecx, [esp + 0x5290]
push ecx
call fcn.00453380
lea edx, [esp + 0x528c]
push edx
lea eax, [esp + 0x568]
push eax
call fcn.00472870
test eax, eax
je 0x493854
lea ecx, [esp + 0x528c]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x493b24
push 0x4b8d18
lea edx, [esp + 0x5290]
push edx
call fcn.00453380
lea eax, [esp + 0x528c]
push eax
lea ecx, [esp + 0x568]
push ecx
call fcn.00472870
test eax, eax
je 0x493892
lea edx, [esp + 0x528c]
push edx
call esi
cmp eax, 0xffffffff
jne 0x493b24
cmp byte [esp + 0x4e80], 0
jne 0x493962
push 1
lea eax, [esp + 0x1608]
push eax
mov ecx, 0x4eeda0
xor ebx, ebx
call fcn.004126c0
test al, al
je 0x493b24
mov edi, edi
cmp byte [0x4e8c4c], 0
jne 0x493b24
inc ebx
test bl, 0x1f
jne 0x4938d8
call fcn.004468f0
mov ecx, 0x513650
call fcn.0046a170
mov ecx, 0x513650
call fcn.0046a830
cmp eax, ebp
je 0x493941
push 4
lea ecx, [esp + 0x1608]
push ecx
push eax
call fcn.00445d90
test al, al
jne 0x493914
mov ecx, 0x513650
call fcn.0046a830
cmp eax, ebp
jne 0x4938f0
jmp 0x493941
mov edx, dword [esp + 0x1e14]
push 0x4b8a1e
push edx
call fcn.00431470
movzx eax, al
push eax
lea ecx, [esp + 0x160c]
push ecx
push ebp
lea edx, [esp + 0x574]
push edx
push ebp
call fcn.0048aaf0
push 1
lea eax, [esp + 0x1608]
push eax
mov ecx, 0x4eeda0
call fcn.004126c0
test al, al
jne 0x4938c0
jmp 0x493b24
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x4eeda0
call fcn.00413040
call fcn.00480b00
push 0x400
push 0x4f7014
mov ecx, 0x4eeda0
call fcn.00413010
mov edx, dword [esp + 0x94]
mov ecx, dword [0x4f7814]
mov dword [0x4f4fb4], edx
call fcn.0046a1d0
mov ecx, 0x513650
call fcn.0046a170
mov ecx, 0x513650
call fcn.0046a830
cmp eax, ebp
je 0x4939da
lea ebx, [ebx]
mov ecx, dword [0x4f7814]
push eax
call fcn.0046a5d0
mov ecx, 0x513650
call fcn.0046a830
cmp eax, ebp
jne 0x4939c0
lea eax, [esp + 0x4e80]
push eax
push 0x4bf4e0
push 0x4f5fe3
mov byte [0x4f46d2], 1
mov dword [0x4f4674], ebp
mov dword [0x4f4698], ebp
call fcn.004a3a02
add esp, 0xc
mov ecx, 0x4eeda0
mov byte [0x4f5fc5], 1
mov dword [0x4e842c], edi
call fcn.004113a0
jmp 0x493b24
cmp byte [esp + 0x4e80], 0
jne 0x493a66
lea edx, [esp + 0x564]
push edx
lea eax, [esp + 0x168]
push eax
push ebp
push ebp
lea ecx, [esp + 0x4e90]
push ecx
push ebp
push ebp
call fcn.00435370
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x72a4]
push edx
call fcn.00435370
jmp 0x493b24
lea ecx, [esp + 0x1e34]
call fcn.0042ff90
mov byte [esp + 0x17298], 2
push ebp
push 1
lea eax, [esp + 0x56c]
push eax
lea ecx, [esp + 0x170]
push ecx
lea ecx, [esp + 0x1e44]
call fcn.004303d0
test al, al
je 0x493b10
lea edx, [esp + 0x564]
push edx
lea eax, [esp + 0x168]
push eax
push ebp
push ebp
lea ecx, [esp + 0x4e90]
push ecx
push ebp
push ebp
call fcn.00435370
push 0x10000
lea edx, [esp + 0x7290]
push edx
lea ecx, [esp + 0x1e3c]
call fcn.00430c80
cmp eax, ebp
je 0x493b10
jmp 0x493ae0
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x72a4]
push eax
call fcn.00435370
push 0x10000
lea ecx, [esp + 0x7290]
push ecx
lea ecx, [esp + 0x1e3c]
call fcn.00430c80
cmp eax, ebp
jne 0x493ae0
mov byte [esp + 0x17298], 1
lea ecx, [esp + 0x1e34]
call fcn.004303a0
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x2a58]
call fcn.00463a80
test eax, eax
je 0x4935d0
mov eax, dword [0x5115c8]
mov byte [0x50fc35], 0
cmp eax, ebp
je 0x493b6b
movzx ecx, byte [0x513c4e]
mov edx, dword [0x4e7b84]
push ecx
push eax
push edx
call fcn.0048fc70
mov dword [0x5115c8], ebp
push 0x270
mov byte [0x50fc34], 0
call fcn.00460760
push eax
mov eax, dword [0x4e7b84]
push 0x9b
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x4e8c4c], 0
je 0x493ba6
mov ecx, dword [0x4e7b84]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x493bab
call fcn.004852e0
cmp word [0x5105c8], bp
je 0x493bce
push 0x5105c8
mov ecx, 0x4ee478
call fcn.00444620
cmp word [0x510dc8], bp
je 0x493bf0
jmp 0x493be1
cmp word [0x510dc8], bp
je 0x493bff
mov ecx, 0x4ee478
call fcn.004423b0
push 0x510dc8
mov ecx, 0x4ee478
call fcn.00444080
push 0x50fdc8
mov ecx, 0x4ee478
call fcn.004424d0
mov dword [esp + 0x17298], 0xffffffff
lea ecx, [esp + 0x2a54]
call fcn.004631e0
mov ecx, dword [esp + 0x17290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17278]
xor ecx, esp
call fcn.004a39f3
add esp, 0x17288
ret 4