Function at 0x4182c0
Capabilities:
Copy file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x435ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x443284]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x443284]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x282]
push ebx
mov dword [esp + 0x49c], ebx
push eax
mov dword [esp + 0x28], ebx
mov word [esp + 0x288], bx
call fcn.00424a50
push 0x206
lea ecx, [esp + 0x86]
push ebx
push ecx
mov word [esp + 0x8c], bx
call fcn.00424a50
add esp, 0x18
lea edx, [esp + 0x44]
push edx
sub esp, 0x1c
mov dword [esp + 0x40], esp
mov ecx, esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x4c4]
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401960
lea esi, [esp + 0x48]
call fcn.004120d0
mov edi, 8
add esp, 0x1c
cmp dword [eax + 0x18], edi
jb 0x418388
mov eax, dword [eax + 4]
jmp 0x41838b
add eax, 4
push eax
call fcn.004201a2
add esp, 8
test eax, eax
sete byte [esp + 0x1b]
cmp dword [esp + 0x40], edi
jb 0x4183ae
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041f829
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x41861a
mov eax, dword [esp + 0x58]
cmp eax, ebx
jle 0x41861a
cmp eax, 0x100
jle 0x41861a
push 0x43bf38
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x4c4]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401960
lea esi, [esp + 0x48]
call fcn.004120d0
add esp, 0x1c
cmp dword [eax + 0x18], edi
jb 0x41840c
mov eax, dword [eax + 4]
jmp 0x41840f
add eax, 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041f92f
add esp, 0xc
test eax, eax
sete byte [esp + 0x1b]
cmp dword [esp + 0x40], edi
jb 0x418437
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041f829
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x41861a
mov edx, dword [esp + 0x58]
add edx, 1
push edx
call fcn.0041ee32
mov edi, eax
mov eax, dword [esp + 0x5c]
add eax, 1
push eax
push ebx
push edi
call fcn.00424a50
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x68]
push ecx
push edx
push 1
push edi
call fcn.004208ab
add esp, 0x20
cmp eax, dword [esp + 0x58]
jne 0x41853c
mov eax, dword [edi + 0x3c]
mov ebp, dword [eax + edi + 0x9c]
cmp ebp, ebx
lea esi, [eax + edi + 0x18]
je 0x418537
lea ecx, [esp + 0x27c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x74]
push edx
push ebx
push 0x43c070
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x43b3b0
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0041f92f
add esp, 0xc
test eax, eax
jne 0x418537
mov eax, dword [esp + 0x24]
mov dword [esi + 0x84], ebx
mov dword [esi + 0x80], ebx
mov ecx, dword [esp + 0x58]
push eax
sub ecx, ebp
push ecx
push 1
push edi
call fcn.00420cf5
mov edx, dword [esp + 0x34]
push edx
call fcn.00420024
sub esp, 8
mov dword [esp + 0x38], esp
mov esi, esp
sub esp, 0x1c
lea edx, [esp + 0xac]
mov eax, esp
mov dword [esp + 0x54], esp
call fcn.00401880
call fcn.00412070
add esp, 0x1c
call fcn.00418810
add esp, 0x1c
mov dword [esp + 0x1c], eax
mov ebp, 0xf
push edi
call fcn.004200a0
mov eax, dword [esp + 0x24]
push eax
call fcn.00420024
add esp, 8
cmp dword [esp + 0x1c], ebx
je 0x41861a
push 1
sub esp, 0x1c
mov dword [esp + 0x3c], esp
mov esi, esp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x4e0]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov edi, 1
mov byte [ecx + 4], bl
call fcn.00401960
call fcn.004120d0
add esp, 0x1c
mov ecx, edi
call fcn.00412e70
add esp, 0x20
cmp eax, ebx
je 0x41860d
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x4c4]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401960
lea esi, [esp + 0x48]
call fcn.004120d0
mov edi, 8
add esp, 0x1c
cmp dword [eax + 0x18], edi
jb 0x4185df
mov eax, dword [eax + 4]
jmp 0x4185e2
add eax, 4
push eax
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x40], edi
mov esi, eax
jb 0x418603
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041f829
add esp, 4
cmp esi, ebx
jne 0x41860d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x74]
push eax
call fcn.00421b15
add esp, 4
cmp dword [esp + 0x4b4], 0x10
jb 0x418634
mov ecx, dword [esp + 0x4a0]
push ecx
call fcn.0041f829
add esp, 4
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0041f134
add esp, 0x484
ret