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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x16
add esp, 0xfffff004
push eax
dec eax
jne 0x487649
mov eax, dword [ebp - 4]
add esp, 0xfffff604
push ebx
push esi
push edi
mov edi, eax
mov esi, 0x4df4f4
mov eax, 0x4b6944
call fcn.004a0204
cmp byte [0x4b5d9a], 0
jne 0x4876c7
mov word [ebp - 0x3060], 8
mov eax, esi
call fcn.00410634
add dword [ebp - 0x3054], 4
lea eax, [esi + 0xf8]
call fcn.00410634
add dword [ebp - 0x3054], 4
lea eax, [esi + 0x1f0]
call fcn.00410634
add dword [ebp - 0x3054], 4
inc dword [ebp - 0x3054]
sub dword [ebp - 0x3054], 0xd
inc byte [0x4b5d9a]
mov dword [0x4df4e8], esi
mov eax, esi
call fcn.00410788
lea eax, [esi + 0xf8]
call fcn.00410788
lea eax, [esi + 0x1f0]
call fcn.00410788
cmp dword [0x4d27d4], 0
setne dl
and edx, 1
mov byte [esi + 0x6ee], dl
mov byte [esi + 0x6ef], 0
test edi, edi
jne 0x48773a
push esi
push 0x481ff4
push dword [0x4cfe34]
push str.FINDFILES
push dword [0x4bb918]
call sub.USER32.DLL_DialogBoxParamA
test eax, eax
jne 0x48773a
mov ecx, dword [ebp - 0x3070]
mov dword fs:[0], ecx
jmp 0x487f21
push 0x482c09
xor ecx, ecx
xor edx, edx
mov eax, 7
call fcn.00476300
mov eax, str.HELPSearchResults
call fcn.004786e0
test edi, edi
je 0x48781f
push 0x4c6c59
lea edx, [ebp - 0x347c]
push edx
call fcn.0049fdd4
add esp, 8
mov cl, 1
mov byte [esi + 0x6ea], cl
mov byte [esi + 0x6e9], cl
mov byte [esi + 0x6e8], 0
mov edx, str.cth
lea eax, [esi + 0x1f0]
call fcn.004107b8
mov ebx, dword [0x4c8488]
mov eax, esi
mov edx, ebx
call fcn.0040ebac
lea edx, [ebx + 0x10]
lea eax, [esi + 0x10]
call fcn.00401b6c
lea edx, [ebx + 0x20]
lea eax, [esi + 0x20]
call fcn.0040ebdc
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x1c], eax
mov edx, dword [ebx + 0x2c]
mov dword [esi + 0x2c], edx
mov ecx, dword [ebx + 0x30]
mov dword [esi + 0x30], ecx
push esi
push edi
lea edi, [esi + 0x34]
lea esi, [ebx + 0x34]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
lea edi, [esi + 0x74]
lea esi, [ebx + 0x74]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
lea edi, [esi + 0xb4]
lea esi, [ebx + 0xb4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebx + 0xf4]
mov dword [esi + 0xf4], eax
jmp 0x4878b4
mov byte [ebp - 0x347c], 0
cmp byte [esi + 0x2e8], 0
je 0x4878b4
cmp byte [esi + 0x6eb], 0
je 0x487850
push 0x4b5f69
lea edx, [ebp - 0x347c]
push edx
call fcn.0049fcf8
add esp, 8
cmp byte [esi + 0x6ec], 0
je 0x48786d
push 0x4b5f6b
lea ecx, [ebp - 0x347c]
push ecx
call fcn.0049fcf8
add esp, 8
cmp byte [esi + 0x6ed], 0
je 0x48788a
push 0x4b5f6d
lea eax, [ebp - 0x347c]
push eax
call fcn.0049fcf8
add esp, 8
push 0x4b5f6f
lea edx, [ebp - 0x347c]
push edx
call fcn.0049fcf8
add esp, 8
lea ecx, [esi + 0x2e8]
push ecx
lea eax, [ebp - 0x347c]
push eax
call fcn.0049fcf8
add esp, 8
cmp dword [0x4d27d4], 0
je 0x4878d3
lea ecx, [ebp - 0x407c]
lea edx, [ebp - 0x387c]
mov eax, 0x4d0b94
call fcn.00458d38
mov word [ebp - 0x3060], 0x14
xor edx, edx
push 0
mov dword [0x4df4ec], edx
mov byte [0x4df4f1], 0
mov byte [0x4df4f0], 1
push 0
cmp byte [esi + 0x6e8], 0
mov ecx, 1
je 0x48790d
cmp byte [esi + 0x6ee], 0
je 0x48790e
dec ecx
test edi, edi
jne 0x48791a
lea edx, [esi + 0xf8]
jmp 0x48791c
mov edx, edi
lea eax, [ebp - 0x242c]
call fcn.0041408c
inc dword [ebp - 0x3054]
mov word [ebp - 0x3060], 0x20
lea eax, [ebp - 0x4520]
call fcn.00414bf8
lea eax, [ebp - 0x44f4]
call fcn.00414bf8
lea eax, [ebp - 0x44c8]
call fcn.00414bf8
jmp 0x487e3f
call fcn.00480728
cmp dword [0x4df4ec], 0
je 0x487988
mov cl, byte [esi + 0x6ee]
mov edx, dword [0x4df4ec]
mov eax, dword [0x4cfe40]
call fcn.004819ad
xor edx, edx
mov dword [0x4df4ec], edx
xor ecx, ecx
mov cl, byte [ebp - 0x5134]
cmp ecx, 0x2e
jne 0x4879aa
xor eax, eax
mov al, byte [ebp - 0x5133]
cmp eax, 0x5c
jne 0x4879aa
lea edx, [ebp - 0x5132]
jmp 0x4879b0
lea edx, [ebp - 0x5134]
push edx
lea eax, [ebp - 0x5934]
push eax
call fcn.0049fdd4
add esp, 8
lea eax, [ebp - 0x5934]
mov edx, 0x50
call fcn.00481038
push eax
mov eax, 0x523
call fcn.00413388
push eax
lea edx, [ebp - 0x5534]
push edx
call fcn.004a2e18
add esp, 0xc
lea ecx, [ebp - 0x5534]
push ecx
push 0x9b
push dword [0x4cfe40]
call sub.USER32.DLL_SetDlgItemTextA
cmp byte [esi + 0x6ea], 0
je 0x487cf4
xor ebx, ebx
mov word [ebp - 0x3060], 0x20
mov byte [ebp - 0x3071], 0
lea eax, [esi + 0x1f0]
call fcn.0041099c
jmp 0x487a5b
lea edx, [ebp - 0x5134]
xor ecx, ecx
mov eax, edi
call fcn.0041374c
test al, al
je 0x487a5b
mov bl, 1
xor eax, eax
mov al, byte [edi]
cmp eax, 0x2a
jne 0x487a6c
cmp byte [edi + 1], 0
jne 0x487a6c
mov byte [ebp - 0x3071], 1
jmp 0x487a6c
lea eax, [esi + 0x1f0]
call fcn.00410914
mov edi, eax
test eax, eax
jne 0x487a2e
test bl, bl
je 0x487cf4
cmp byte [ebp - 0x3071], 0
je 0x487aa2
cmp byte [esi + 0x6ee], 0
jne 0x487aa2
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x5134]
mov eax, 0x4d0b94
xor ecx, ecx
call fcn.00458e40
mov ebx, eax
test bl, bl
je 0x487cf4
cmp byte [esi + 0x6ee], 0
je 0x487aba
mov byte [0x4d27d2], 1
cmp byte [ebp - 0x347c], 0
setne al
and eax, 1
push eax
push 1
lea ecx, [ebp - 0x4d34]
lea edx, [ebp - 0x5134]
mov eax, 0x4d0b94
call fcn.00457674
mov word [ebp - 0x3060], 0x20
cmp eax, 2
je 0x487e61
dec eax
jne 0x487cf4
mov byte [ebp - 0x5d34], 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x5d34]
lea edx, [ebp - 0x5134]
mov eax, 0x4d0b94
call fcn.00458e40
lea edx, [ebp - 0x5d34]
lea eax, [ebp - 0x5134]
call fcn.0040fdc0
test eax, eax
je 0x487bbe
lea edx, [ebp - 0x5d34]
push edx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x487b4c
xor ebx, ebx
jmp 0x487bbe
mov edx, 0x4b5f71
lea eax, [ebp - 0x5d34]
call fcn.0040c830
lea edx, [ebp - 0x5d34]
lea eax, [ebp - 0x5134]
call fcn.0040fdc0
test eax, eax
je 0x487b86
lea ecx, [ebp - 0x5d34]
push ecx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x487b86
xor ebx, ebx
jmp 0x487bbe
mov edx, 0x4b5f75
lea eax, [ebp - 0x5d34]
call fcn.0040c830
lea edx, [ebp - 0x5d34]
lea eax, [ebp - 0x5134]
call fcn.0040fdc0
test eax, eax
je 0x487bbe
lea ecx, [ebp - 0x5d34]
push ecx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x487bbe
xor ebx, ebx
test bl, bl
je 0x487e3f
cmp byte [ebp - 0x347c], 0
jne 0x487c4d
xor edi, edi
jmp 0x487c25
inc edi
test edi, 0x1f
jne 0x487be1
call fcn.00480728
mov eax, esi
call fcn.0041099c
jmp 0x487c18
lea edx, [ebp - 0x6964]
mov ecx, 3
mov eax, ebx
call fcn.0041374c
test al, al
je 0x487c18
mov ecx, 0x4b5e28
lea edx, [ebp - 0x6964]
lea eax, [ebp - 0x5134]
call fcn.00487f8c
jmp 0x487c25
mov eax, esi
call fcn.00410914
mov ebx, eax
test eax, eax
jne 0x487bea
lea edx, [ebp - 0x6964]
mov eax, 0x4d0b94
mov cl, 1
call fcn.00458340
test eax, eax
je 0x487e3f
cmp dword [0x4d27e4], 0
je 0x487bd3
jmp 0x487e3f
lea edx, [ebp - 0x6a00]
mov eax, 0x4d0b94
call fcn.00458d98
call fcn.0044b01c
mov ecx, 0x4c7c88
mov edx, 0x4c7888
mov eax, 0x4d0b94
call fcn.00458d64
mov edx, dword [ebp - 0x69f0]
mov dword [0x4c6438], edx
mov eax, dword [0x4c8488]
call fcn.00410788
mov eax, esi
call fcn.0041099c
jmp 0x487ca1
mov edx, ebx
mov eax, dword [0x4c8488]
call fcn.004107b8
mov eax, esi
call fcn.00410914
mov ebx, eax
test eax, eax
jne 0x487c95
mov byte [0x4c5b56], 1
xor edx, edx
mov dword [0x4c5aec], edx
xor ecx, ecx
mov dword [0x4c5b18], ecx
lea eax, [ebp - 0x347c]
push eax
push 0x4b5f79
push 0x4c6c58
call fcn.004a2e18
add esp, 0xc
mov byte [0x4c6c49], 1
mov eax, 0x4d0b94
call fcn.00454e30
jmp 0x487e3f
cmp byte [esi + 0x6e9], 0
je 0x487e3f
xor ebx, ebx
mov word [ebp - 0x3060], 0x20
mov eax, esi
call fcn.0041099c
jmp 0x487d2f
lea edx, [ebp - 0x5134]
mov ecx, 3
mov eax, edi
call fcn.0041374c
test al, al
je 0x487d2f
mov bl, 1
jmp 0x487d3c
mov eax, esi
call fcn.00410914
mov edi, eax
test eax, eax
jne 0x487d15
test bl, bl
je 0x487e3f
cmp byte [ebp - 0x347c], 0
jne 0x487d7d
push 0
lea edx, [ebp - 0x5134]
push edx
lea ecx, [ebp - 0x347c]
xor edx, edx
xor eax, eax
call fcn.00410344
push 0
push 0
lea eax, [ebp - 0x16a00]
xor ecx, ecx
xor edx, edx
call fcn.00410344
jmp 0x487e3f
mov word [ebp - 0x3060], 0x2c
lea eax, [ebp - 0x304c]
call fcn.00409724
inc dword [ebp - 0x3054]
mov word [ebp - 0x3060], 0x38
push 1
push 0
lea ecx, [ebp - 0x4d34]
lea edx, [ebp - 0x5134]
lea eax, [ebp - 0x304c]
call fcn.00409818
test al, al
jne 0x487dd7
dec dword [ebp - 0x3054]
lea eax, [ebp - 0x304c]
mov edx, 2
call fcn.004097d4
jmp 0x487e3f
push 0
lea ecx, [ebp - 0x5134]
push ecx
lea ecx, [ebp - 0x347c]
xor edx, edx
xor eax, eax
call fcn.00410344
jmp 0x487e04
push 0
push 0
lea eax, [ebp - 0x16a00]
xor ecx, ecx
mov edx, ebx
call fcn.00410344
lea edx, [ebp - 0x16a00]
lea eax, [ebp - 0x304c]
mov ecx, 0x10000
call fcn.00409e1c
mov ebx, eax
test eax, eax
jne 0x487df1
dec dword [ebp - 0x3054]
lea eax, [ebp - 0x304c]
mov edx, 2
call fcn.004097d4
mov word [ebp - 0x3060], 0x20
lea edx, [ebp - 0x5134]
lea eax, [ebp - 0x242c]
call fcn.004141cc
test eax, eax
jne 0x487e61
cmp dword [0x4d27e4], 0
je 0x48795c
mov byte [0x4df4f0], 0
cmp dword [0x4df4ec], 0
je 0x487e8f
mov cl, byte [esi + 0x6ee]
mov edx, dword [0x4df4ec]
mov eax, dword [0x4cfe40]
call fcn.004819ad
xor ecx, ecx
mov dword [0x4df4ec], ecx
mov byte [0x4df4f1], 0
mov eax, 0x270
call fcn.00413388
push eax
push 0x9b
push dword [0x4cfe40]
call sub.USER32.DLL_SetDlgItemTextA
cmp dword [0x4d27e4], 0
je 0x487ec7
push dword [0x4cfe40]
call sub.USER32.DLL_DestroyWindow
jmp 0x487ecc
call fcn.004783ac
cmp dword [0x4d27d4], 0
je 0x487efe
cmp byte [esi + 0x6ef], 0
jne 0x487ef4
lea ecx, [ebp - 0x407c]
lea edx, [ebp - 0x387c]
mov eax, 0x4d0b94
call fcn.00458b94
mov eax, 0x4cfe48
call fcn.0045cb14
dec dword [ebp - 0x3054]
lea eax, [ebp - 0x242c]
mov edx, 2
call fcn.0041416c
mov ecx, dword [ebp - 0x3070]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret