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

Disassembly:
push 0xffffffffffffffff
push 0x4c3f64
mov eax, dword fs:[0]
push eax
mov eax, 0x1727c
call fcn.004af5f0
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x17278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d8620]
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 [0x56a338], 1
mov word [0x5674b0], ax
mov word [0x566cb0], cx
mov word [0x5664b0], dx
jne 0x4994ab
or dword [0x56a338], 1
mov dword [esp + 0x17298], ebp
mov ecx, 0x569d38
call fcn.00495cf0
push 0x4c4a00
call fcn.004b0fff
add esp, 4
mov dword [esp + 0x17298], 0xffffffff
mov ecx, 0x569d38
mov dword [0x567cb4], 0x569d38
call fcn.0046f5f0
mov ecx, 0x569de0
call fcn.0046f5f0
mov ecx, 0x569e88
call fcn.0046f5f0
mov al, byte [0x526d89]
mov byte [0x56a336], al
cmp ebx, ebp
jne 0x49950c
mov ecx, dword [0x527edc]
mov edx, dword [0x513900]
push 0x569d38
push 0x493740
push ecx
push str.FINDFILES
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
je 0x499de6
push 0x496470
push ebp
push ebp
push 7
call fcn.0048d9c0
push 0x4ccd98
call fcn.0048b8c0
cmp ebx, ebp
je 0x4995f8
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x53527a]
mov byte [esp + eax + 0x4e80], cl
inc eax
test cl, cl
jne 0x499530
mov byte [0x56a330], cl
push 0x4c5f34
mov ecx, 0x569e88
mov byte [0x56a332], 1
mov byte [0x56a331], 1
call fcn.0046f9e0
mov ecx, dword [0x536aac]
call fcn.0046f590
push 0x400
lea eax, [esp + 0x5a90]
push eax
lea ecx, [esp + 0x5294]
push ecx
mov ecx, dword [0x536aac]
call fcn.0046fab0
test al, al
je 0x4996c9
jmp 0x4995a0
push 0x400
lea edx, [esp + 0x5a90]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x5298]
push ecx
call fcn.004559f0
lea edx, [esp + 0x5a8c]
push edx
mov ecx, 0x569d38
call fcn.0046f9e0
push 0x400
lea eax, [esp + 0x5a90]
push eax
lea ecx, [esp + 0x5294]
push ecx
mov ecx, dword [0x536aac]
call fcn.0046fab0
test al, al
jne 0x4995a0
jmp 0x4996c9
cmp byte [0x569f30], 0
mov byte [esp + 0x4e80], 0
je 0x4996c9
cmp byte [0x56a333], 0
je 0x499632
lea edi, [esp + 0x4e80]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x499620
mov dx, word [0x4ccd94]
mov word [edi], dx
cmp byte [0x56a334], 0
je 0x499654
lea edi, [esp + 0x4e80]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x499643
mov ax, word [0x4ccd90]
mov word [edi], ax
cmp byte [0x56a335], 0
je 0x499677
lea edi, [esp + 0x4e80]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x499665
mov cx, word [0x4ccd8c]
mov word [edi], cx
lea edi, [esp + 0x4e80]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x499680
mov dx, word [str.htc]
mov eax, 0x569f30
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4996a0
lea edi, [esp + 0x4e80]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4996b1
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 [0x526d89], 0
je 0x4996e9
push 0x400
lea eax, [esp + 0x6290]
push eax
mov ecx, 0x52dfe8
call fcn.00412e70
cmp byte [0x56a330], 0
mov dword [0x567cb0], ebp
mov byte [0x56631c], 0
mov byte [0x56631d], 1
mov edi, 2
je 0x499718
cmp byte [0x56a336], 0
jne 0x499718
mov ecx, edi
jmp 0x49971a
xor ecx, ecx
mov eax, 0x569de0
cmp ebx, ebp
je 0x499725
mov eax, ebx
push 3
push ebp
push ecx
push eax
lea ecx, [esp + 0x2a64]
call fcn.00468650
mov dword [esp + 0x17298], 1
lea ecx, [esp + 0xd78]
call fcn.00472370
lea ecx, [esp + 0xd9c]
call fcn.00472370
lea ecx, [esp + 0xdc0]
call fcn.00472370
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x2a58]
call fcn.004691a0
test eax, eax
jne 0x499d10
cmp byte [0x527e58], 0
jne 0x499d10
call fcn.0044aea0
mov eax, dword [0x567cb0]
cmp eax, ebp
je 0x4997b6
movzx edx, byte [0x56a336]
push edx
push eax
mov eax, dword [0x526d84]
push eax
call fcn.00495de0
mov dword [0x567cb0], ebp
cmp word [esp + 0x564], 0x2e
jne 0x4997d3
cmp word [esp + 0x566], 0x5c
lea ecx, [esp + 0x568]
je 0x4997da
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 0x4997e1
push 0x50
lea ecx, [esp + 0x5a90]
push ecx
call fcn.0044aa70
push eax
push 0x523
call fcn.00465ec0
push eax
lea edx, [esp + 0x6a94]
push edx
mov edx, 0x400
call fcn.004a5ca0
mov ecx, dword [0x526d84]
add esp, 0xc
lea eax, [esp + 0x6a8c]
push eax
push 0x9b
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x56a332], 0
je 0x49988e
cmp byte [esp + 0xd74], 0
jne 0x49988e
mov ecx, 0x569e88
call fcn.0046f590
mov ecx, 0x569e88
call fcn.0046fc50
mov esi, eax
cmp esi, ebp
je 0x49988e
push ebp
lea edx, [esp + 0x568]
push edx
push esi
call fcn.0044a340
test al, al
jne 0x4998fb
mov ecx, 0x569e88
call fcn.0046fc50
mov esi, eax
cmp esi, ebp
jne 0x499867
cmp byte [0x56a331], 0
je 0x499cf4
cmp byte [esp + 0xd74], 0
je 0x4998b3
cmp byte [esp + 0x4e80], 0
jne 0x499cf4
mov ecx, 0x569d38
call fcn.0046f590
mov ecx, 0x569d38
call fcn.0046fc50
cmp eax, ebp
je 0x499cf4
nop
push 4
lea ecx, [esp + 0x568]
push ecx
push eax
call fcn.0044a340
test al, al
jne 0x499bf3
mov ecx, 0x569d38
call fcn.0046fc50
cmp eax, ebp
jne 0x4998d0
jmp 0x499cf4
cmp word [esi], 0x2a
jne 0x499930
cmp word [esi + 2], bp
jne 0x499930
cmp byte [0x56a336], 0
jne 0x499930
push 1
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x578]
push eax
mov ecx, 0x52dfe8
call fcn.004170b0
test al, al
je 0x49988e
cmp byte [0x56a336], 0
mov dword [0x52762c], edi
je 0x499946
mov byte [0x52f522], 1
cmp byte [esp + 0x4e80], 0
push 1
setne cl
movzx edx, cl
push edx
lea eax, [esp + 0x56c]
push eax
mov ecx, 0x52dfe8
call fcn.004166e0
cmp eax, edi
jne 0x49997f
call fcn.00453260
test al, al
je 0x499d10
jmp 0x499cf4
cmp eax, 1
jne 0x49988e
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, 0x52dfe8
call fcn.004170b0
lea ecx, [esp + 0x528c]
push ecx
lea edx, [esp + 0x568]
push edx
call fcn.00477c80
test eax, eax
je 0x499a62
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x528c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x499cf4
push 0x4c5e00
lea ecx, [esp + 0x5290]
push ecx
call fcn.00457ac0
lea edx, [esp + 0x528c]
push edx
lea eax, [esp + 0x568]
push eax
call fcn.00477c80
test eax, eax
je 0x499a24
lea ecx, [esp + 0x528c]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x499cf4
push 0x4c5e08
lea edx, [esp + 0x5290]
push edx
call fcn.00457ac0
lea eax, [esp + 0x528c]
push eax
lea ecx, [esp + 0x568]
push ecx
call fcn.00477c80
test eax, eax
je 0x499a62
lea edx, [esp + 0x528c]
push edx
call esi
cmp eax, 0xffffffff
jne 0x499cf4
cmp byte [esp + 0x4e80], 0
jne 0x499b32
push 1
lea eax, [esp + 0x1608]
push eax
mov ecx, 0x52dfe8
xor ebx, ebx
call fcn.00412540
test al, al
je 0x499cf4
mov edi, edi
cmp byte [0x527e58], 0
jne 0x499cf4
inc ebx
test bl, 0x1f
jne 0x499aa8
call fcn.0044aea0
mov ecx, 0x569d38
call fcn.0046f590
mov ecx, 0x569d38
call fcn.0046fc50
cmp eax, ebp
je 0x499b11
push 4
lea ecx, [esp + 0x1608]
push ecx
push eax
call fcn.0044a340
test al, al
jne 0x499ae4
mov ecx, 0x569d38
call fcn.0046fc50
cmp eax, ebp
jne 0x499ac0
jmp 0x499b11
mov edx, dword [esp + 0x1e14]
push 0x4c5a56
push edx
call fcn.00432450
movzx eax, al
push eax
lea ecx, [esp + 0x160c]
push ecx
push ebp
lea edx, [esp + 0x574]
push edx
push ebp
call fcn.00490cc0
push 1
lea eax, [esp + 0x1608]
push eax
mov ecx, 0x52dfe8
call fcn.00412540
test al, al
jne 0x499a90
jmp 0x499cf4
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x52dfe8
call fcn.00412ec0
call fcn.00486850
push 0x400
push 0x5362aa
mov ecx, 0x52dfe8
call fcn.00412e90
mov edx, dword [esp + 0x94]
mov ecx, dword [0x536aac]
mov dword [0x53423c], edx
call fcn.0046f5f0
mov ecx, 0x569d38
call fcn.0046f590
mov ecx, 0x569d38
call fcn.0046fc50
cmp eax, ebp
je 0x499baa
lea ebx, [ebx]
mov ecx, dword [0x536aac]
push eax
call fcn.0046f9f0
mov ecx, 0x569d38
call fcn.0046fc50
cmp eax, ebp
jne 0x499b90
lea eax, [esp + 0x4e80]
push eax
push 0x4ccd84
push 0x535279
mov byte [0x53395a], 1
mov dword [0x5338fc], ebp
mov dword [0x533920], ebp
call fcn.004aedca
add esp, 0xc
mov ecx, 0x52dfe8
mov byte [0x535254], 1
mov dword [0x52762c], edi
call fcn.004117c0
jmp 0x499cf4
cmp byte [esp + 0x4e80], 0
jne 0x499c36
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.004380a0
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x72a4]
push edx
call fcn.004380a0
jmp 0x499cf4
lea ecx, [esp + 0x1e34]
call fcn.00430f40
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.004313a0
test al, al
je 0x499ce0
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.004380a0
push 0x10000
lea edx, [esp + 0x7290]
push edx
lea ecx, [esp + 0x1e3c]
call fcn.00431c60
cmp eax, ebp
je 0x499ce0
nop
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x72a4]
push eax
call fcn.004380a0
push 0x10000
lea ecx, [esp + 0x7290]
push ecx
lea ecx, [esp + 0x1e3c]
call fcn.00431c60
cmp eax, ebp
jne 0x499cb0
mov byte [esp + 0x17298], 1
lea ecx, [esp + 0x1e34]
call fcn.00431370
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x2a58]
call fcn.004691a0
test eax, eax
je 0x499781
mov eax, dword [0x567cb0]
mov byte [0x56631d], 0
cmp eax, ebp
je 0x499d3b
movzx ecx, byte [0x56a336]
mov edx, dword [0x526d84]
push ecx
push eax
push edx
call fcn.00495de0
mov dword [0x567cb0], ebp
push 0x270
mov byte [0x56631c], 0
call fcn.00465ec0
push eax
mov eax, dword [0x526d84]
push 0x9b
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x527e58], 0
je 0x499d76
mov ecx, dword [0x526d84]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x499d7b
call fcn.0048b430
cmp word [0x566cb0], bp
je 0x499d9e
push 0x566cb0
mov ecx, 0x52d6c0
call fcn.004485c0
cmp word [0x5674b0], bp
je 0x499dc0
jmp 0x499db1
cmp word [0x5674b0], bp
je 0x499dcf
mov ecx, 0x52d6c0
call fcn.004469a0
push 0x5674b0
mov ecx, 0x52d6c0
call fcn.00448760
push 0x5664b0
mov ecx, 0x52d6c0
call fcn.00446ac0
mov dword [esp + 0x17298], 0xffffffff
lea ecx, [esp + 0x2a54]
call fcn.00468900
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.004aedbb
add esp, 0x17288
ret 4