Function at 0x430f40
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.004a1410
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x3fe
mov esi, ecx
lea edx, [ebp - 0x802]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x100c], esi
mov dword [ebp - 0x1018], edi
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x1028], ebx
mov word [ebp - 0x804], cx
call fcn.0049eae0
lea eax, [esi + 4]
add esp, 0xc
mov dword [ebp - 0x102c], ebx
lea edx, [eax + 2]
jmp 0x430fc0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x430fc0
sub eax, edx
sar eax, 1
jne 0x430fe9
pop edi
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 0xc
cmp edi, ebx
je 0x431582
mov edi, dword [ebp - 0x1014]
cmp edi, ebx
je 0x431582
lea eax, [esi + 4]
lea edx, [ebp - 0x804]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x431010
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431023
lea edi, [ebp - 0x804]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x431040
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x804]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x100c]
push eax
call fcn.00430670
mov eax, dword [ebp - 0x1018]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431076
lea edi, [ebp - 0x804]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x431090
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]
mov esi, dword [ebp - 0x100c]
cmp byte [ebp + 0x10], bl
jne 0x4310e1
lea ecx, [ebp - 0x804]
push ecx
mov ecx, esi
call fcn.00430550
test al, al
je 0x4310e1
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test al, al
je 0x431387
push 0x3fe
lea edx, [ebp - 0xc02]
xor ecx, ecx
push ebx
push edx
mov byte [ebp - 0x1005], bl
mov word [ebp - 0xc04], cx
call fcn.0049eae0
mov esi, dword [ebp - 0x1014]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431121
sub eax, edx
sar eax, 1
je 0x431196
lea edx, [ebp - 0xc04]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x431140
lea eax, [ebp - 0xc04]
lea edx, [eax + 2]
jmp 0x431160
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431160
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0xc06], 0x5c
je 0x431196
lea edi, [ebp - 0xc04]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x431183
mov eax, dword [0x4d3378]
mov dword [edi], eax
mov eax, dword [ebp - 0x1018]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4311a0
lea edi, [ebp - 0xc04]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4311b6
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]
mov ecx, dword [ebp - 0x100c]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x43125f
push 0x3fe
lea edx, [ebp - 0x402]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x404], cx
call fcn.0049eae0
mov eax, dword [ebp - 0x100c]
add eax, 0xc16
lea edx, [ebp - 0x404]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x431214
mov eax, dword [ebp - 0x1014]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea ecx, [ebp - 0x404]
push ecx
call esi
mov edx, dword [ebp - 0x1018]
push edx
lea eax, [ebp - 0x404]
push eax
call esi
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x431387
mov esi, dword [ebp - 0x100c]
lea edi, [esi + 0x1018]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x1028]
push edx
lea eax, [ebp - 0x1020]
push eax
lea ecx, [ebp - 0x101c]
push ecx
lea edx, [ebp - 0xc04]
push edx
call fcn.0049abc0
add esp, 0x10
cmp eax, 1
jne 0x4312a6
mov byte [ebp - 0x1005], al
jmp 0x431374
cmp eax, ebx
je 0x4312be
push eax
lea eax, [ebp - 0x1010]
push eax
mov ecx, esi
call fcn.00430630
jmp 0x431374
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43131b
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
neg eax
sbb eax, eax
and eax, 3
add eax, 6
mov dword [ebp - 0x1010], eax
jmp 0x43135a
mov edx, dword [ebp - 0x1020]
push ebx
lea ecx, [ebp - 0x102c]
push ecx
mov ecx, dword [ebp - 0x1028]
add ecx, dword [ebp - 0x101c]
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431354
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1010], 4
jmp 0x43135a
mov dword [ebp - 0x1010], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x101c]
cmp eax, ebx
je 0x431374
push eax
call fcn.0049acf0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x1005], bl
je 0x43159a
mov esi, dword [ebp - 0x100c]
cmp byte [esi + 0xc15], bl
jne 0x43159a
push 0x3fe
lea eax, [ebp - 0x402]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x404], dx
call fcn.0049eae0
push 0x3fe
lea edx, [ebp - 0x1002]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x1004], cx
call fcn.0049eae0
lea eax, [esi + 0xc16]
lea edx, [ebp - 0x404]
add esp, 0x18
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4313e0
mov eax, dword [ebp - 0x1014]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea ecx, [ebp - 0x404]
push ecx
call esi
mov edx, dword [ebp - 0x1018]
push edx
lea eax, [ebp - 0x404]
push eax
call esi
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431485
mov eax, dword [ebp - 0x100c]
add eax, 0x804
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x431436
sub ecx, esi
sar ecx, 1
je 0x431485
lea edx, [ebp - 0x404]
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x431450
mov edx, dword [ebp - 0x1014]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edx
lea eax, [ebp - 0x404]
push eax
call esi
mov ecx, dword [ebp - 0x1018]
push ecx
lea edx, [ebp - 0x404]
push edx
call esi
mov eax, dword [ebp - 0x100c]
add eax, 4
lea edx, [ebp - 0x1004]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x431496
mov eax, dword [ebp - 0x1014]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4314b0
lea edi, [ebp - 0x1004]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4314c6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x1004]
and ecx, 3
push 0x5c
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004a1462
add esp, 8
test eax, eax
je 0x431509
lea ecx, [ebp - 0x1004]
push ecx
mov ecx, dword [ebp - 0x100c]
call fcn.00430670
cmp byte [ebp + 0x10], bl
je 0x43152c
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x43156d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x43156d
cmp eax, 5
je 0x43156d
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1010]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 0xc