Function at 0x414520
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4282a2
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x434284]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
xor ebp, ebp
mov esi, ecx
push 0x208
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebp
call fcn.00416860
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x48], edi
je 0x414c7f
push 0x208
call fcn.00416860
mov ebx, eax
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x28], ebx
je 0x414c47
mov eax, dword [esi + 0x3c]
cmp eax, 1
mov byte [esp + 0x1b], 0
jae 0x4145dc
cmp dword [esi + 0x24], 8
jb 0x4145cc
mov eax, dword [esi + 0x10]
push 0x42d6e8
push eax
lea eax, [esp + 0x24]
push eax
jmp 0x41462a
lea eax, [esi + 0x10]
push 0x42d6e8
push eax
lea eax, [esp + 0x24]
push eax
jmp 0x41462a
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
push ebp
push 0x430024
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x42d6e8
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.00417c83
add esp, 0xc
test eax, eax
jne 0x414c47
cmp dword [esi + 0x24], 8
jb 0x41461c
mov eax, dword [esi + 0x10]
jmp 0x41461f
lea eax, [esi + 0x10]
push 0x42d6e8
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00417c83
add esp, 0xc
test eax, eax
jne 0x414c47
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov edi, esi
mov edx, 0x42c114
lea eax, [esp + 0x110]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edi
call fcn.00403ed0
mov dword [esp + 0x138], ebp
jmp 0x41466f
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
test edi, edi
mov ebp, dword [esi + 4]
je 0x41467a
cmp edi, esi
je 0x41467f
call fcn.00416f9a
cmp ebx, ebp
je 0x414a80
test edi, edi
jne 0x414690
call fcn.00416f9a
cmp ebx, dword [edi + 4]
jne 0x41469a
call fcn.00416f9a
xor eax, eax
push 0xffffffffffffffff
lea esi, [ebx + 0xc]
mov dword [esp + 0xf0], eax
mov word [esp + 0xe0], ax
push eax
mov ebp, 7
mov eax, esi
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf8], ebp
call fcn.004040a0
mov byte [esp + 0x138], 1
cmp ebx, dword [edi + 4]
jne 0x4146dd
call fcn.00416f9a
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x10c], ecx
mov word [esp + 0xfc], cx
push ecx
lea eax, [esi + 0x1c]
lea ecx, [esp + 0xfc]
mov dword [esp + 0x114], ebp
call fcn.004040a0
push 0x43002c
mov ebx, 1
lea eax, [esp + 0xdc]
mov byte [esp + 0x13c], 2
call fcn.00404150
push eax
lea eax, [esp + 0xdc]
push eax
xor ecx, ecx
lea esi, [esp + 0xa8]
call fcn.00408bf0
push 0x43002c
lea eax, [esp + 0xdc]
mov byte [esp + 0x13c], 3
call fcn.00404150
mov ecx, dword [esp + 0xec]
push ecx
lea edx, [esp + 0xdc]
lea ecx, [eax + 1]
push edx
lea esi, [esp + 0xc4]
call fcn.00408bf0
mov byte [esp + 0x138], 4
cmp dword [esp + 0xb8], 8
mov eax, dword [esp + 0xa4]
jae 0x414794
lea eax, [esp + 0xa4]
mov edi, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x114]
call fcn.00404c00
test eax, eax
je 0x41488b
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x118]
call fcn.004040a0
lea eax, [esp + 0xa0]
push eax
mov edx, 0x430038
lea edi, [esp + 0x6c]
call fcn.00409c40
push eax
mov ebx, 0x430030
lea esi, [esp + 0x54]
mov byte [esp + 0x140], 5
call fcn.00404a50
add esp, 8
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [esp + 0xa8]
mov byte [esp + 0x140], 6
call fcn.004040a0
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x41482f
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00416abb
add esp, 4
mov byte [esp + 0x138], 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
jb 0x41485e
mov edx, dword [esp + 0x6c]
push edx
call fcn.00416abb
add esp, 4
cmp dword [esp + 0xb8], esi
mov eax, dword [esp + 0xa4]
jae 0x414875
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.00418b58
add esp, 8
test eax, eax
jl 0x414a4c
lea edx, [esp + 0xbc]
push edx
mov ebx, 0x430044
lea esi, [esp + 0x88]
call fcn.00404a50
lea ecx, [esp + 0xf8]
push ecx
push eax
lea edi, [esp + 0x74]
mov byte [esp + 0x144], 7
call fcn.00404b30
push eax
mov ebx, 0x43003c
lea esi, [esp + 0x5c]
mov byte [esp + 0x148], 8
call fcn.00404a50
add esp, 0x10
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0xc4]
mov byte [esp + 0x140], 9
call fcn.004040a0
mov edi, 8
cmp dword [esp + 0x64], edi
jb 0x414909
mov edx, dword [esp + 0x50]
push edx
call fcn.00416abb
add esp, 4
cmp dword [esp + 0x80], edi
mov ebp, 7
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
jb 0x414931
mov eax, dword [esp + 0x6c]
push eax
call fcn.00416abb
add esp, 4
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
jb 0x41495a
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00416abb
add esp, 4
cmp dword [esp + 0xd4], edi
mov eax, dword [esp + 0xc0]
jae 0x414971
lea eax, [esp + 0xc0]
mov edx, dword [esp + 0x1c]
push edx
push eax
call fcn.00418b58
add esp, 8
test eax, eax
jl 0x414a46
lea esi, [esp + 0x40]
call fcn.00415980
cmp dword [esp + 0xd4], edi
jb 0x4149a9
mov eax, dword [esp + 0xc0]
push eax
call fcn.00416abb
add esp, 4
cmp dword [esp + 0xb8], edi
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], bx
jb 0x4149d8
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.00416abb
add esp, 4
cmp dword [esp + 0x10c], edi
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
jb 0x414a07
mov edx, dword [esp + 0xf8]
push edx
call fcn.00416abb
add esp, 4
mov byte [esp + 0x138], bl
cmp dword [esp + 0xf0], edi
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], bx
jb 0x414663
mov eax, dword [esp + 0xdc]
push eax
call fcn.00416abb
add esp, 4
jmp 0x414663
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0xbc]
call fcn.00403f40
lea esi, [esp + 0xa0]
call fcn.00403f40
lea esi, [esp + 0xf4]
call fcn.00403f40
lea esi, [esp + 0xd8]
call fcn.00403f40
mov esi, dword [esp + 0x24]
mov dword [esp + 0x138], 0xffffffff
cmp dword [esp + 0x128], 8
jb 0x414aa5
mov ecx, dword [esp + 0x114]
push ecx
call fcn.00416abb
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call fcn.004179a1
xor ebp, ebp
add esp, 4
cmp dword [esi + 0x3c], ebp
mov dword [esp + 0x1c], ebp
jbe 0x414c38
mov eax, dword [esp + 0x28]
push 0x42d6e0
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00417c83
add esp, 0xc
test eax, eax
jne 0x414c3d
mov edx, dword [esp + 0x1c]
push 2
push ebp
push edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.00417aa4
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.00418cf4
mov edx, dword [esp + 0x30]
push ebp
push ebp
push edx
call fcn.00417aa4
add esp, 0x20
cmp dword [esp + 0x30], ebp
jl 0x414c3d
mov eax, dword [esp + 0x2c]
jg 0x414b2b
cmp eax, ebp
jbe 0x414c3d
lea edi, [eax + eax + 0xe]
cmp edi, ebp
mov eax, edi
jg 0x414b3a
mov eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416860
add esp, 4
cmp eax, ebp
mov dword [esp + 0x3c], eax
je 0x414c3d
cmp edi, ebp
mov eax, edi
jg 0x414b6a
mov eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416860
add esp, 4
cmp eax, ebp
mov dword [esp + 0x38], eax
je 0x414c3d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
push eax
push ecx
push 1
push ebx
call fcn.00417903
add esp, 0x10
cmp eax, dword [esp + 0x2c]
jne 0x414c08
lea eax, [esi + 0x28]
lea ecx, [esp + 0x84]
call fcn.00413130
cmp dword [eax + 0x18], 0x10
jb 0x414bc8
mov ecx, dword [eax + 4]
jmp 0x414bcb
lea ecx, [eax + 4]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
push edi
push ebx
call fcn.00412b00
add esp, 8
lea ecx, [esp + 0x84]
mov esi, eax
call fcn.00403ea0
cmp esi, ebp
je 0x414c08
push esi
mov esi, ebx
call fcn.00412d60
mov edx, dword [esp + 0x24]
push edx
push eax
push 1
push ebx
call fcn.00417e9e
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x1c]
push eax
call fcn.004179a1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004179a1
mov edx, dword [esp + 0x30]
add esp, 8
push edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x1b], 1
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x28]
xor ebp, ebp
push edi
call fcn.004170f7
add esp, 4
cmp ebx, ebp
je 0x414c5d
push ebx
call fcn.004170f7
add esp, 4
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x414c6e
push eax
call fcn.004170f7
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x414c7f
push eax
call fcn.004170f7
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x414c90
push eax
call fcn.004179a1
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x414ca1
push eax
call fcn.004179a1
add esp, 4
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004170e8
add esp, 0x128
ret