Function at 0x484754
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 0x48475d
mov eax, dword [ebp - 4]
add esp, 0xfffff608
push ebx
push esi
push edi
mov edi, eax
mov esi, 0x4d5ce0
mov eax, 0x4af29c
call fcn.004992ac
cmp byte [0x4ae712], 0
jne 0x4847db
mov word [ebp - 0x3060], 8
mov eax, esi
call fcn.0040fdcc
add dword [ebp - 0x3054], 4
lea eax, [esi + 0xf8]
call fcn.0040fdcc
add dword [ebp - 0x3054], 4
lea eax, [esi + 0x1f0]
call fcn.0040fdcc
add dword [ebp - 0x3054], 4
inc dword [ebp - 0x3054]
sub dword [ebp - 0x3054], 0xd
inc byte [0x4ae712]
mov dword [0x4d5cd4], esi
mov eax, esi
call fcn.0040ff20
lea eax, [esi + 0xf8]
call fcn.0040ff20
lea eax, [esi + 0x1f0]
call fcn.0040ff20
cmp dword [0x4c988c], 0
setne dl
and edx, 1
mov byte [esi + 0x6ee], dl
mov byte [esi + 0x6ef], 0
test edi, edi
jne 0x48484e
push esi
push 0x47f22d
push dword [0x4c6eec]
push str.FINDFILES
push dword [0x4b41d0]
call sub.USER32.DLL_DialogBoxParamA
test eax, eax
jne 0x48484e
mov ecx, dword [ebp - 0x3070]
mov dword fs:[0], ecx
jmp 0x48502e
push 0x47fe42
xor ecx, ecx
xor edx, edx
mov eax, 7
call fcn.004735f4
mov eax, str.HELPSearchResults
call fcn.00475970
test edi, edi
je 0x484933
push 0x4bed11
lea edx, [ebp - 0x347c]
push edx
call fcn.00498e7c
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.0040ff50
mov ebx, dword [0x4c0540]
mov eax, esi
mov edx, ebx
call fcn.0040e348
lea edx, [ebx + 0x10]
lea eax, [esi + 0x10]
call fcn.00401b6c
lea edx, [ebx + 0x20]
lea eax, [esi + 0x20]
call fcn.0040e378
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 0x4849c8
mov byte [ebp - 0x347c], 0
cmp byte [esi + 0x2e8], 0
je 0x4849c8
cmp byte [esi + 0x6eb], 0
je 0x484964
push 0x4ae8e1
lea edx, [ebp - 0x347c]
push edx
call fcn.00498da0
add esp, 8
cmp byte [esi + 0x6ec], 0
je 0x484981
push 0x4ae8e3
lea ecx, [ebp - 0x347c]
push ecx
call fcn.00498da0
add esp, 8
cmp byte [esi + 0x6ed], 0
je 0x48499e
push 0x4ae8e5
lea eax, [ebp - 0x347c]
push eax
call fcn.00498da0
add esp, 8
push 0x4ae8e7
lea edx, [ebp - 0x347c]
push edx
call fcn.00498da0
add esp, 8
lea ecx, [esi + 0x2e8]
push ecx
lea eax, [ebp - 0x347c]
push eax
call fcn.00498da0
add esp, 8
cmp dword [0x4c988c], 0
je 0x4849e7
lea ecx, [ebp - 0x407c]
lea edx, [ebp - 0x387c]
mov eax, 0x4c7c4c
call fcn.00457d50
mov word [ebp - 0x3060], 0x14
xor edx, edx
push 0
mov dword [0x4d5cd8], edx
mov byte [0x4d5cdd], 0
mov byte [0x4d5cdc], 1
push 0
cmp byte [esi + 0x6e8], 0
mov ecx, 1
je 0x484a21
cmp byte [esi + 0x6ee], 0
je 0x484a22
dec ecx
test edi, edi
jne 0x484a2e
lea edx, [esi + 0xf8]
jmp 0x484a30
mov edx, edi
lea eax, [ebp - 0x242c]
call fcn.004136c4
inc dword [ebp - 0x3054]
mov word [ebp - 0x3060], 0x20
lea eax, [ebp - 0x451c]
call fcn.004141d8
lea eax, [ebp - 0x44f0]
call fcn.004141d8
lea eax, [ebp - 0x44c4]
call fcn.004141d8
jmp 0x484f4c
call fcn.0047d98c
cmp dword [0x4d5cd8], 0
je 0x484a9c
mov cl, byte [esi + 0x6ee]
mov edx, dword [0x4d5cd8]
mov eax, dword [0x4c6ef8]
call fcn.0047ebe7
xor edx, edx
mov dword [0x4d5cd8], edx
xor ecx, ecx
mov cl, byte [ebp - 0x5130]
cmp ecx, 0x2e
jne 0x484abe
xor eax, eax
mov al, byte [ebp - 0x512f]
cmp eax, 0x5c
jne 0x484abe
lea edx, [ebp - 0x512e]
jmp 0x484ac4
lea edx, [ebp - 0x5130]
push edx
lea eax, [ebp - 0x5930]
push eax
call fcn.00498e7c
add esp, 8
lea eax, [ebp - 0x5930]
mov edx, 0x50
call fcn.0047e274
push eax
mov eax, 0x523
call fcn.004129c8
push eax
lea edx, [ebp - 0x5530]
push edx
call fcn.0049bdcc
add esp, 0xc
lea ecx, [ebp - 0x5530]
push ecx
push 0x9b
push dword [0x4c6ef8]
call sub.USER32.DLL_SetDlgItemTextA
cmp byte [esi + 0x6ea], 0
je 0x484e01
xor ebx, ebx
mov word [ebp - 0x3060], 0x20
mov byte [ebp - 0x3071], 0
lea eax, [esi + 0x1f0]
call fcn.00410134
jmp 0x484b6f
lea edx, [ebp - 0x5130]
xor ecx, ecx
mov eax, edi
call fcn.00412d8c
test al, al
je 0x484b6f
mov bl, 1
xor eax, eax
mov al, byte [edi]
cmp eax, 0x2a
jne 0x484b80
cmp byte [edi + 1], 0
jne 0x484b80
mov byte [ebp - 0x3071], 1
jmp 0x484b80
lea eax, [esi + 0x1f0]
call fcn.004100ac
mov edi, eax
test eax, eax
jne 0x484b42
test bl, bl
je 0x484e01
cmp byte [ebp - 0x3071], 0
je 0x484bb6
cmp byte [esi + 0x6ee], 0
jne 0x484bb6
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x5130]
mov eax, 0x4c7c4c
xor ecx, ecx
call fcn.00457e58
mov ebx, eax
test bl, bl
je 0x484e01
cmp byte [esi + 0x6ee], 0
je 0x484bce
mov byte [0x4c988a], 1
cmp byte [ebp - 0x347c], 0
setne al
and eax, 1
push eax
push 1
lea ecx, [ebp - 0x4d30]
lea edx, [ebp - 0x5130]
mov eax, 0x4c7c4c
call fcn.004567bc
mov word [ebp - 0x3060], 0x20
cmp eax, 2
je 0x484f6e
dec eax
jne 0x484e01
mov byte [ebp - 0x5d30], 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x5d30]
lea edx, [ebp - 0x5130]
mov eax, 0x4c7c4c
call fcn.00457e58
lea edx, [ebp - 0x5d30]
lea eax, [ebp - 0x5130]
call fcn.0040f55c
test eax, eax
je 0x484cd2
lea edx, [ebp - 0x5d30]
push edx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x484c60
xor ebx, ebx
jmp 0x484cd2
mov edx, 0x4ae8e9
lea eax, [ebp - 0x5d30]
call fcn.0040c18c
lea edx, [ebp - 0x5d30]
lea eax, [ebp - 0x5130]
call fcn.0040f55c
test eax, eax
je 0x484c9a
lea ecx, [ebp - 0x5d30]
push ecx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x484c9a
xor ebx, ebx
jmp 0x484cd2
mov edx, 0x4ae8ed
lea eax, [ebp - 0x5d30]
call fcn.0040c18c
lea edx, [ebp - 0x5d30]
lea eax, [ebp - 0x5130]
call fcn.0040f55c
test eax, eax
je 0x484cd2
lea ecx, [ebp - 0x5d30]
push ecx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x484cd2
xor ebx, ebx
test bl, bl
je 0x484f4c
cmp byte [ebp - 0x347c], 0
jne 0x484d61
xor edi, edi
jmp 0x484d39
inc edi
test edi, 0x1f
jne 0x484cf5
call fcn.0047d98c
mov eax, esi
call fcn.00410134
jmp 0x484d2c
lea edx, [ebp - 0x6960]
mov ecx, 3
mov eax, ebx
call fcn.00412d8c
test al, al
je 0x484d2c
mov ecx, 0x4ae7a0
lea edx, [ebp - 0x6960]
lea eax, [ebp - 0x5130]
call fcn.0048509c
jmp 0x484d39
mov eax, esi
call fcn.004100ac
mov ebx, eax
test eax, eax
jne 0x484cfe
lea edx, [ebp - 0x6960]
mov eax, 0x4c7c4c
mov cl, 1
call fcn.0045732c
test eax, eax
je 0x484f4c
cmp dword [0x4c989c], 0
je 0x484ce7
jmp 0x484f4c
lea edx, [ebp - 0x69fc]
mov eax, 0x4c7c4c
call fcn.00457db0
call fcn.00449c20
mov ecx, 0x4bfd40
mov edx, 0x4bf940
mov eax, 0x4c7c4c
call fcn.00457d7c
mov edx, dword [ebp - 0x69ec]
mov dword [0x4be4f0], edx
mov eax, dword [0x4c0540]
call fcn.0040ff20
mov eax, esi
call fcn.00410134
jmp 0x484db5
mov edx, ebx
mov eax, dword [0x4c0540]
call fcn.0040ff50
mov eax, esi
call fcn.004100ac
mov ebx, eax
test eax, eax
jne 0x484da9
mov byte [0x4bdc0e], 1
xor edx, edx
mov dword [0x4bdba4], edx
xor ecx, ecx
mov dword [0x4bdbd0], ecx
lea eax, [ebp - 0x347c]
push eax
push 0x4ae8f1
push 0x4bed10
call fcn.0049bdcc
add esp, 0xc
mov eax, 0x4c7c4c
call fcn.00453378
jmp 0x484f4c
cmp byte [esi + 0x6e9], 0
je 0x484f4c
xor ebx, ebx
mov word [ebp - 0x3060], 0x20
mov eax, esi
call fcn.00410134
jmp 0x484e3c
lea edx, [ebp - 0x5130]
mov ecx, 3
mov eax, edi
call fcn.00412d8c
test al, al
je 0x484e3c
mov bl, 1
jmp 0x484e49
mov eax, esi
call fcn.004100ac
mov edi, eax
test eax, eax
jne 0x484e22
test bl, bl
je 0x484f4c
cmp byte [ebp - 0x347c], 0
jne 0x484e8a
push 0
lea edx, [ebp - 0x5130]
push edx
lea ecx, [ebp - 0x347c]
xor edx, edx
xor eax, eax
call fcn.0040fadc
push 0
push 0
lea eax, [ebp - 0x169fc]
xor ecx, ecx
xor edx, edx
call fcn.0040fadc
jmp 0x484f4c
mov word [ebp - 0x3060], 0x2c
lea eax, [ebp - 0x304c]
call fcn.00409758
inc dword [ebp - 0x3054]
mov word [ebp - 0x3060], 0x38
push 1
push 0
lea ecx, [ebp - 0x4d30]
lea edx, [ebp - 0x5130]
lea eax, [ebp - 0x304c]
call fcn.0040984c
test al, al
jne 0x484ee4
dec dword [ebp - 0x3054]
lea eax, [ebp - 0x304c]
mov edx, 2
call fcn.00409808
jmp 0x484f4c
push 0
lea ecx, [ebp - 0x5130]
push ecx
lea ecx, [ebp - 0x347c]
xor edx, edx
xor eax, eax
call fcn.0040fadc
jmp 0x484f11
push 0
push 0
lea eax, [ebp - 0x169fc]
xor ecx, ecx
mov edx, ebx
call fcn.0040fadc
lea edx, [ebp - 0x169fc]
lea eax, [ebp - 0x304c]
mov ecx, 0x10000
call fcn.00409dd4
mov ebx, eax
test eax, eax
jne 0x484efe
dec dword [ebp - 0x3054]
lea eax, [ebp - 0x304c]
mov edx, 2
call fcn.00409808
mov word [ebp - 0x3060], 0x20
lea edx, [ebp - 0x5130]
lea eax, [ebp - 0x242c]
call fcn.004137fc
test eax, eax
jne 0x484f6e
cmp dword [0x4c989c], 0
je 0x484a70
mov byte [0x4d5cdc], 0
cmp dword [0x4d5cd8], 0
je 0x484f9c
mov cl, byte [esi + 0x6ee]
mov edx, dword [0x4d5cd8]
mov eax, dword [0x4c6ef8]
call fcn.0047ebe7
xor ecx, ecx
mov dword [0x4d5cd8], ecx
mov byte [0x4d5cdd], 0
mov eax, 0x270
call fcn.004129c8
push eax
push 0x9b
push dword [0x4c6ef8]
call sub.USER32.DLL_SetDlgItemTextA
cmp dword [0x4c989c], 0
je 0x484fd4
push dword [0x4c6ef8]
call sub.USER32.DLL_DestroyWindow
jmp 0x484fd9
call fcn.0047565c
cmp dword [0x4c988c], 0
je 0x48500b
cmp byte [esi + 0x6ef], 0
jne 0x485001
lea ecx, [ebp - 0x407c]
lea edx, [ebp - 0x387c]
mov eax, 0x4c7c4c
call fcn.00457bac
mov eax, 0x4c6f00
call fcn.0045a93c
dec dword [ebp - 0x3054]
lea eax, [ebp - 0x242c]
mov edx, 2
call fcn.0041379c
mov ecx, dword [ebp - 0x3070]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret