Function at 0x436360
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4abd79
mov eax, dword fs:[0]
push eax
mov eax, 0x19d8
call fcn.00479e30
mov eax, dword [0x4cf640]
xor eax, esp
mov dword [esp + 0x19d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cf640]
xor eax, esp
push eax
lea eax, [esp + 0x19ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a00]
mov esi, dword [esp + 0x19fc]
mov ebp, dword [esp + 0x1a04]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov edi, 7
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
call fcn.0040216a
lea eax, [esp + 0x38]
push ebx
push eax
mov dword [esp + 0x19fc], ebx
call fcn.004437b0
add esp, 8
cmp dword [esp + 0x4c], ebx
mov byte [esp + 0x19f4], 1
jne 0x436451
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x436424
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00478d09
add esp, 4
cmp dword [esp + 0xdc], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x43644a
mov edx, dword [esp + 0xc8]
push edx
call fcn.00478d09
add esp, 4
xor al, al
jmp 0x4369c3
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
call fcn.0040216a
cmp dword [esp + 0x84], ebx
mov byte [esp + 0x19f4], 2
jne 0x4364b8
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x4364a0
mov eax, dword [esp + 0x74]
push eax
call fcn.00478d09
add esp, 4
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jmp 0x436411
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x4364c7
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x934]
call fcn.0043ecf0
xor eax, eax
mov dword [esp + 0x19e2], eax
mov word [esp + 0x19e6], ax
lea eax, [esp + 0x19e0]
push eax
lea ecx, [esp + 0x934]
mov byte [esp + 0x19f8], 3
mov word [esp + 0x19e4], bx
call fcn.0043e900
lea ecx, [esp + 0x70]
push ecx
call fcn.00442a90
add esp, 4
test al, al
jne 0x436527
lea edx, [esp + 0x70]
push edx
call fcn.00442bf0
add esp, 4
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x436534
call fcn.00479177
mov edi, esi
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
jbe 0x436543
call fcn.00479177
cmp edi, esi
je 0x436941
mov eax, dword [esp + 0x14]
push 0x4b5754
push eax
lea ecx, [esp + 0xb0]
push ecx
call fcn.0040cba0
add esp, 0xc
mov esi, eax
cmp edi, dword [ebp + 8]
mov byte [esp + 0x19f4], 4
jb 0x436579
call fcn.00479177
push edi
lea edx, [esp + 0x90]
push esi
push edx
call fcn.004172c0
add esp, 0xc
cmp dword [esp + 0xc0], 8
mov byte [esp + 0x19f4], 6
jb 0x4365ad
mov eax, dword [esp + 0xac]
push eax
call fcn.00478d09
add esp, 4
mov ecx, dword [esp + 0x18]
push 0x4b5754
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
call fcn.0040cba0
add esp, 0xc
mov esi, eax
cmp edi, dword [ebp + 8]
mov byte [esp + 0x19f4], 7
jb 0x4365f2
call fcn.00479177
push edi
lea eax, [esp + 0x58]
push esi
push eax
call fcn.004172c0
add esp, 0xc
cmp dword [esp + 0x34], 8
mov byte [esp + 0x19f4], 9
jb 0x43661d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00478d09
add esp, 4
cmp edi, dword [ebp + 8]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x436638
call fcn.00479177
mov edx, dword [edi + 0x14]
push 0x10
push str.bugreport_xf.exe
push edx
push ebx
mov ecx, edi
call fcn.00416c10
test eax, eax
jne 0x436718
mov eax, dword [esp + 0x14]
push 0x4b6c74
push eax
lea ecx, [esp + 0xb0]
push ecx
call fcn.0040cba0
add esp, 0xc
mov eax, dword [esp + 0x90]
mov esi, 8
cmp dword [esp + 0xa4], esi
mov byte [esp + 0x19f4], 0xa
jae 0x436693
lea eax, [esp + 0x90]
jmp 0x436697
cmp eax, ebx
je 0x4366ac
cmp word [eax], bx
je 0x4366ac
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4366ac
test al, 0x10
je 0x4366f5
cmp dword [esp + 0xc0], esi
mov eax, dword [esp + 0xac]
jae 0x4366c5
lea eax, [esp + 0xac]
jmp 0x4366c9
cmp eax, ebx
je 0x4366f5
cmp word [eax], bx
je 0x4366f5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4366f5
test al, 0x10
jne 0x4366f5
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x98]
call fcn.0040216a
cmp dword [esp + 0xc0], esi
mov byte [esp + 0x19f4], 9
jb 0x43671d
mov eax, dword [esp + 0xac]
push eax
call fcn.00478d09
add esp, 4
jmp 0x43671d
mov esi, 8
cmp edi, dword [ebp + 8]
jb 0x436727
call fcn.00479177
cmp byte [edi + 0x1c], bl
je 0x43689d
cmp dword [esp + 0x6c], esi
mov eax, dword [esp + 0x58]
jae 0x436740
lea eax, [esp + 0x58]
jmp 0x436748
cmp eax, ebx
je 0x43689d
cmp word [eax], bx
je 0x43689d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43689d
test al, 0x10
jne 0x43689d
cmp dword [esp + 0xa4], esi
mov eax, dword [esp + 0x90]
jae 0x436780
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x1184]
call fcn.0043ecf0
lea ecx, [esp + 0x19d0]
xor eax, eax
push ecx
lea ecx, [esp + 0x1184]
mov byte [esp + 0x19f8], 0xb
mov word [esp + 0x19d4], bx
mov dword [esp + 0x19d6], eax
mov word [esp + 0x19da], ax
call fcn.0043e900
cmp dword [esp + 0x6c], 8
movzx esi, word [esp + 0x19d4]
mov eax, dword [esp + 0x58]
jae 0x4367d9
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xe4]
call fcn.0043ecf0
xor eax, eax
lea edx, [esp + 0x19d8]
push edx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x19f8], 0xc
mov word [esp + 0x19dc], bx
mov dword [esp + 0x19de], eax
mov word [esp + 0x19e2], ax
call fcn.0043e900
movzx eax, word [esp + 0x19dc]
cmp esi, eax
jb 0x436873
cmp edi, dword [ebp + 8]
jb 0x436831
call fcn.00479177
cmp dword [esp + 0x6c], 8
mov esi, dword [esp + 0x58]
jae 0x436840
lea esi, [esp + 0x58]
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x436858
lea eax, [esp + 0x90]
cmp eax, ebx
mov cl, byte [edi + 0x1c]
je 0x436873
cmp esi, ebx
je 0x436873
xor edx, edx
cmp cl, bl
sete dl
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x19f4], 0xb
call fcn.0043e970
lea ecx, [esp + 0x1180]
mov byte [esp + 0x19f4], 9
call fcn.0043e970
jmp 0x4368e8
cmp edi, dword [ebp + 8]
jb 0x4368a7
call fcn.00479177
cmp dword [esp + 0x6c], esi
mov esi, dword [esp + 0x58]
jae 0x4368b5
lea esi, [esp + 0x58]
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x4368cd
lea eax, [esp + 0x90]
cmp eax, ebx
mov cl, byte [edi + 0x1c]
je 0x4368e8
cmp esi, ebx
je 0x4368e8
xor edx, edx
cmp cl, bl
sete dl
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x6c], 8
jb 0x4368fc
mov eax, dword [esp + 0x58]
push eax
call fcn.00478d09
add esp, 4
cmp dword [esp + 0xa4], 8
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov byte [esp + 0x19f4], 3
jb 0x43692f
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00478d09
add esp, 4
cmp edi, dword [ebp + 8]
jb 0x436939
call fcn.00479177
add edi, 0x20
jmp 0x436536
lea ecx, [esp + 0x930]
mov byte [esp + 0x19f4], 2
call fcn.0043e970
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x436970
mov edx, dword [esp + 0x74]
push edx
call fcn.00478d09
add esp, 4
cmp dword [esp + 0x50], esi
mov edi, 7
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x43699b
mov eax, dword [esp + 0x3c]
push eax
call fcn.00478d09
add esp, 4
cmp dword [esp + 0xdc], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x4369c1
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.00478d09
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x19ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x19d4]
xor ecx, esp
call fcn.00478cd0
add esp, 0x19e4
ret