Function at 0x4497d0
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x506ec4
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
cmp word [ebp + 8], 1
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], eax
mov dword [eax], 0
jne 0x449ed5
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [esi + 0x488]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
push 0x461
push eax
call edi
test eax, eax
jne 0x449853
xor eax, eax
jmp 0x449edb
push 1
push eax
call edi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x44984c
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x286]
push edx
mov word [esp + 0x288], cx
call fcn.004e8fe0
mov eax, dword [esi + 4]
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x27c]
push ecx
push 0x104
push 0x466
push eax
call esi
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea edx, [esp + 0x27c]
lea edi, [esp + 0x28]
mov dword [esp + 0x4a0], 0
call fcn.00401600
mov ecx, edi
push ecx
mov eax, 1
lea ecx, [esp + 0x1c]
call fcn.00429020
mov eax, dword [eax]
push 0x511ddc
push eax
call fcn.004e4707
add esp, 8
test eax, eax
mov byte [esp + 0x4a0], 0
mov eax, dword [esp + 0x18]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x449925
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x449938
lea ecx, [esp + 0x28]
push ecx
mov edx, 0x511ddc
call fcn.0041d510
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x7e]
push eax
mov word [esp + 0x80], dx
call fcn.004e8fe0
mov ecx, dword [esp + 0x38]
add esp, 0xc
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x449c12
push 0x30
xor edi, edi
lea edx, [esp + 0x48]
push edi
push edx
call fcn.004e8fe0
mov ecx, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push edi
push 0x104b
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], 4
call esi
neg eax
sbb eax, eax
and eax, dword [esp + 0x60]
mov dword [esp + 0x34], eax
je 0x449ab6
lea edx, [esp + 0x74]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x449aac
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x4a4], 2
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x516f10
lea edi, [esp + 0x20]
call fcn.00404890
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x449a29
mov eax, edi
mov edi, dword [esp + 0x20]
push eax
add edi, 0x4b0
call fcn.0041ca50
jmp 0x449a7b
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x78]
call fcn.00401640
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
add edi, 0x4b0
mov byte [esp + 0x4a4], 3
call fcn.0041ca50
mov byte [esp + 0x4a0], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x449a7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4a0], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x449bf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x449bf8
cmp dword [esp + 0x34], edi
jne 0x449bf8
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push edi
push edi
push 0x407
push eax
call esi
cmp eax, edi
je 0x449bf8
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x24], edi
call eax
test eax, eax
jne 0x449bf8
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
push 0x50dbcc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x449bec
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x449be0
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x449be0
lea esi, [esp + 0x30]
call fcn.004048a0
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x4a4], 4
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x516f10
mov edi, esi
call fcn.00404890
mov edx, dword [esp + 0x3c]
add esp, 0xc
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x449b96
mov edi, dword [esp + 0x20]
mov eax, esi
push eax
add edi, 0x4b0
call fcn.0041ca50
jmp 0x449bc9
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x78]
call fcn.00401640
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
add edi, 0x4b0
mov byte [esp + 0x4a4], 5
call fcn.0041ca50
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x4a0], 0
call fcn.004016f0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
push 2
push ebx
push 0x100c
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x449970
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0x1032
push ecx
call esi
test eax, eax
ja 0x449d88
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x4c0]
sub edx, dword [eax + 0x4bc]
add eax, 0x4b0
mov dword [esp + 0x18], eax
test edx, 0xfffffffc
jne 0x449d88
lea esi, [esp + 0x14]
call fcn.004048a0
mov ecx, dword [esp + 0x38]
mov eax, esi
push eax
mov eax, 0x47c
mov byte [esp + 0x4a4], 6
call fcn.004364d0
test eax, eax
jbe 0x449d71
mov ecx, 0x5c
call fcn.00427460
mov ecx, 0x2f
mov ebx, eax
call fcn.00427460
mov edi, dword [esp + 0x14]
mov ecx, dword [edi - 0xc]
cmp ecx, 3
jle 0x449d01
cmp ecx, 2
jge 0x449caa
push 0x80070057
call fcn.00401540
movzx edx, word [edi + 4]
movzx esi, dx
cmp si, 0x5c
je 0x449ccf
cmp ecx, 2
jge 0x449cc6
push 0x80070057
call fcn.00401540
movzx edx, dx
cmp dx, 0x2f
jne 0x449d01
cmp ecx, 1
jge 0x449cde
push 0x80070057
call fcn.00401540
movzx ecx, word [edi + 2]
cmp cx, 0x3a
jne 0x449d01
cmp ebx, 0xffffffff
jne 0x449cf1
cmp eax, ebx
je 0x449d01
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
call fcn.0041ca50
jmp 0x449d71
lea esi, [esp + 0x1c]
call fcn.004048a0
push edi
mov byte [esp + 0x4a4], 7
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, dword [esp + 0x28]
push eax
push edx
push 0x516f10
mov edi, esi
call fcn.00404890
mov esi, dword [esp + 0x28]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x449d68
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00401640
lea ecx, [esp + 0x24]
mov byte [esp + 0x4a0], 8
mov edi, dword [esp + 0x18]
push ecx
call fcn.0041ca50
lea ecx, [esp + 0x24]
call fcn.004016f0
lea ecx, [esp + 0x1c]
call fcn.004016f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x4a0], 0
call fcn.004016f0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x2c]
push 0
push 0
push 0x1032
push edx
call esi
test eax, eax
ja 0x449e2a
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x4c0]
sub eax, dword [edi + 0x4bc]
add edi, 0x4b0
test eax, 0xfffffffc
jne 0x449e2a
lea esi, [esp + 0x1c]
call fcn.004048a0
mov ecx, esi
push ecx
mov ecx, dword [esp + 0x3c]
mov eax, 0x480
mov byte [esp + 0x4a4], 9
call fcn.004364d0
test eax, eax
jbe 0x449e19
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x449e19
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00401640
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x4a4], 0xa
call fcn.0041ca50
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a0], 0
call fcn.004016f0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x4c0]
sub ecx, dword [eax + 0x4bc]
test ecx, 0xfffffffc
jne 0x449e91
lea esi, [esp + 0x24]
call fcn.00401140
mov esi, eax
lea edx, [esp + 0x18]
push 0x17c
push edx
mov byte [esp + 0x4a8], 0xb
call fcn.00433510
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 8
push 0x20
push esi
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x24]
call fcn.004016f0
jmp 0x449ea0
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [esp + 0x3c]
mov dword [eax], 1
mov dword [esp + 0x4a0], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x449ed5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.004e3edb
mov esp, ebp
pop ebp
ret 8