Function at 0x41b760
Capabilities:
Check if file exists
Copy file
Create process on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48ab79
mov eax, dword fs:[0]
push eax
sub esp, 0x6dc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x6f0]
mov dword fs:[0], eax
mov edi, dword [esp + 0x704]
mov esi, ecx
call fcn.0044d630
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41b7b2
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x6f8], ebx
call fcn.0044d630
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41b7e3
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x6fc], 1
call fcn.00406820
lea ecx, [esp + 0x28]
push ecx
push edi
mov ecx, esi
call fcn.00413c40
add esp, 8
test eax, eax
je 0x41b822
mov ebp, 1
mov ebx, ebp
jmp 0x41b888
push ebx
push 0x494704
lea ecx, [esp + 0x2c]
call fcn.004068a0
mov eax, dword [esp + 0x28]
cmp eax, 1
jne 0x41b849
mov edx, dword [esi]
push edx
push 0x497eec
lea eax, [esp + 0x28]
push eax
jmp 0x41b86f
cmp eax, 2
jne 0x41b85d
mov ecx, dword [esi]
push ecx
push 0x497f1c
lea edx, [esp + 0x28]
push edx
jmp 0x41b86f
cmp eax, 3
jne 0x41b877
mov eax, dword [esi]
push eax
push 0x497f50
lea ecx, [esp + 0x28]
push ecx
call fcn.004067e0
add esp, 0xc
mov edx, dword [esp + 0x20]
push ebx
push ebx
push edx
call fcn.0044f968
mov ebp, 1
cmp dword [0x4b8f48], 0
je 0x41b8c5
mov ecx, dword [esp + 0x700]
push edi
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0041caa0
mov byte [esp + 0x6f8], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41c217
cmp edi, 0xd
ja case.0x41b8ce.5
jmp dword [edi*4 + 0x41c26c]
test ebx, ebx
je 0x41b917
lea ecx, [esp + 0x704]
push ecx
push esi
lea edx, [esp + 0x104]
push edx
call fcn.0042cfb0
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 2
call fcn.00451b98
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 1
call fcn.0042d1d0
mov dword [0x4b90b0], ebp
lea ecx, [esp + 0x20]
call fcn.00401f20
lea ecx, [esp + 0x24]
call fcn.00401f20
jmp 0x41c24e
test ebx, ebx
je 0x41b917
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41b94a
test al, 0x10
jne 0x41b97c
push 0x497fc0
lea eax, [esp + 0x60]
push esi
push eax
call fcn.00406070
add esp, 0xc
push 0
mov byte [esp + 0x6fc], 3
mov ecx, dword [eax]
push 0
push ecx
call fcn.0044f968
lea ecx, [esp + 0x5c]
call fcn.00401f20
jmp 0x41b917
push 2
push esi
lea edx, [esp + 0x104]
push edx
call fcn.00445330
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 4
call fcn.00451b98
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 1
call fcn.00445530
jmp 0x41b917
lea ecx, [esp + 0x18]
mov dword [0x4b90b0], ebp
call fcn.00401f40
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x6fc], 5
call fcn.0040a490
mov bl, 6
mov byte [esp + 0x6f8], bl
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x41b9f5
push 0x80070057
call fcn.00401db0
mov cl, byte [eax]
mov byte [esp + 0x28], cl
mov edx, dword [esp + 0x28]
push 0
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004146b0
add esp, 0xc
push str.mi.dat
push eax
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x704], 7
call fcn.00406070
add esp, 0xc
push eax
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x700], 8
call fcn.0040a7d0
lea ecx, [esp + 0x44]
call fcn.00401f20
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6f8], bl
call fcn.00401f20
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, esi
lea eax, [esp + 0x70]
call fcn.0040ac20
test eax, eax
je 0x41ba94
mov edx, dword [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x108]
push ecx
call fcn.0042ef00
mov byte [esp + 0x6f8], 9
jmp 0x41bb46
push str.mi.dat
lea edx, [esp + 0x50]
push 0x4b9130
push edx
call fcn.00406070
add esp, 0xc
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x700], 0xa
call fcn.0040a7d0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6f8], 6
call fcn.00401f20
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, esi
lea eax, [esp + 0x70]
call fcn.0040ac20
test eax, eax
je 0x41bb0a
mov eax, dword [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x108]
push edx
call fcn.0042ef00
mov byte [esp + 0x6f8], 0xb
jmp 0x41bb46
push 0x494704
lea ecx, [esp + 0x30]
call fcn.00406500
push 0
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x108]
push ecx
mov byte [esp + 0x708], 0xc
call fcn.0042ef00
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6f8], 0xe
call fcn.00401f20
lea ecx, [esp + 0xfc]
call fcn.00451b98
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 6
call fcn.0042f130
mov byte [esp + 0x6f8], 5
lea ecx, [esp + 0x68]
call fcn.0040a510
lea ecx, [esp + 0x18]
call fcn.00401f20
jmp 0x41b91d
lea ecx, [esp + 0x18]
call fcn.00401f40
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x6fc], 0xf
call fcn.0040a490
mov bl, 0x10
mov byte [esp + 0x6f8], bl
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x41bbbb
push 0x80070057
call fcn.00401db0
mov al, byte [eax]
mov byte [esp + 0x28], al
mov ecx, dword [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.004146b0
add esp, 0xc
push str.wei.dat
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x704], 0x11
call fcn.00406070
add esp, 0xc
push eax
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x700], 0x12
call fcn.0040a7d0
lea ecx, [esp + 0x64]
call fcn.00401f20
lea ecx, [esp + 0x54]
mov byte [esp + 0x6f8], bl
call fcn.00401f20
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, esi
lea eax, [esp + 0x70]
call fcn.0040ac20
test eax, eax
je 0x41bc5d
mov ecx, dword [esp + 0x1c]
add ecx, 2
push ecx
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x108]
push eax
call fcn.0042ef00
mov byte [esp + 0x6f8], 0x13
jmp 0x41bd18
push str.wei.dat
lea ecx, [esp + 0x64]
push 0x4b9130
push ecx
call fcn.00406070
add esp, 0xc
push eax
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x700], 0x14
call fcn.0040a7d0
lea ecx, [esp + 0x60]
mov byte [esp + 0x6f8], 0x10
call fcn.00401f20
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, esi
lea eax, [esp + 0x70]
call fcn.0040ac20
test eax, eax
je 0x41bcd6
mov edx, dword [esp + 0x1c]
add edx, 2
push edx
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x108]
push ecx
call fcn.0042ef00
mov byte [esp + 0x6f8], 0x15
jmp 0x41bd18
push 0x494704
lea ecx, [esp + 0x3c]
call fcn.00406500
mov byte [esp + 0x6f8], 0x16
mov edx, dword [esp + 0x1c]
add edx, 2
push edx
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x108]
push ecx
call fcn.0042ef00
lea ecx, [esp + 0x38]
mov byte [esp + 0x6f8], 0x18
call fcn.00401f20
lea ecx, [esp + 0xfc]
call fcn.00451b98
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 0x10
call fcn.0042f130
mov dword [0x4b90b0], 1
mov byte [esp + 0x6f8], 0xf
jmp 0x41bb6e
mov edx, dword [0x4b9124]
mov eax, dword [edx - 0xc]
test eax, eax
jg 0x41bdbc
push 0
push 0
push 0x498028
call fcn.0044f968
lea eax, [esp + 0xfc]
push eax
call fcn.00412370
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 0x19
call fcn.00451b98
cmp dword [esp + 0x180], 0
je 0x41bda3
mov ecx, dword [esp + 0x700]
push esi
push ecx
call fcn.0041c2b0
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 1
call fcn.00412470
jmp 0x41b917
call fcn.0041cc90
test eax, eax
je 0x41b917
mov edx, dword [esp + 0x700]
push esi
push edx
call fcn.0041c2b0
jmp 0x41b917
lea eax, [esp + 0x8c]
push eax
mov dword [0x4b90b0], ebp
call fcn.00435450
mov bl, 0x1a
mov byte [esp + 0x6f8], bl
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x41be0a
push 0x80070057
call fcn.00401db0
mov cl, byte [eax]
mov byte [esp + 0x28], cl
mov edx, dword [esp + 0x28]
push edx
call fcn.00435d10
test eax, eax
jne 0x41bee4
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x41be34
push 0x80070057
call fcn.00401db0
mov cl, byte [eax]
mov byte [esp + 0x28], cl
mov edx, dword [esp + 0x28]
push edx
call fcn.00435e90
test eax, eax
jne 0x41bee4
mov ecx, dword [0x4b9124]
mov eax, dword [ecx - 0xc]
test eax, eax
jg 0x41becd
push 0
push 0
push 0x498088
call fcn.0044f968
lea edx, [esp + 0xfc]
push edx
call fcn.00412370
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 0x1b
call fcn.00451b98
cmp dword [esp + 0x180], 0
je 0x41bea0
mov edx, dword [esp + 0x700]
mov ecx, esi
call fcn.0041c6a0
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], bl
call fcn.00412470
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x6fc], 1
call fcn.00435560
jmp 0x41b91d
call fcn.0041cc90
test eax, eax
je 0x41bee4
mov edx, dword [esp + 0x700]
mov ecx, esi
call fcn.0041c6a0
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x6fc], 1
call fcn.00435560
jmp 0x41b91d
mov ecx, dword [0x4b9124]
cmp dword [ecx - 0xc], 0
jle 0x41bf17
call fcn.0041cc90
test eax, eax
je 0x41b917
mov edx, dword [esp + 0x700]
push esi
push edx
call fcn.0041c4a0
jmp 0x41b917
mov eax, dword [0x4b9124]
cmp dword [eax - 0xc], 0
jle 0x41bf42
call fcn.0041cc90
test eax, eax
je 0x41b917
mov edx, dword [esp + 0x700]
mov ecx, esi
call fcn.0041c8a0
jmp 0x41b917
push esi
call fcn.0042cb20
test eax, eax
je 0x41c03a
lea ecx, [esp + 0x18]
call fcn.00401f40
lea ecx, [esp + 0x1c]
call fcn.00401f40
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6fc], 0x1d
call fcn.00406820
push ebp
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040a000
mov eax, dword [eax]
push 0x494a8c
push eax
call fcn.00469941
add esp, 8
test eax, eax
lea ecx, [esp + 0x40]
setne bl
call fcn.00401f20
test bl, bl
je 0x41bfc6
push 0x494a8c
lea ecx, [esp + 0x1c]
call fcn.00409fc0
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push 0x4980e8
push eax
call fcn.004067e0
mov esi, dword [esp + 0x28]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41c017
push 0x4980f4
lea ecx, [esp + 0x4c]
push 0x4b90c8
push ecx
call fcn.00406070
mov eax, dword [eax]
add esp, 0xc
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x48]
call fcn.00401f20
push 5
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x1c]
call fcn.00401f20
lea ecx, [esp + 0x18]
jmp 0x41c1f6
push 0x494704
lea ecx, [esp + 0x38]
call fcn.00406500
push 0x58
push esi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x108]
push eax
mov byte [esp + 0x708], 0x1e
call fcn.0042ef00
mov byte [esp + 0x6f8], 0x20
lea ecx, [esp + 0x34]
call fcn.00401f20
lea ecx, [esp + 0xfc]
call fcn.00451b98
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f8], 1
call fcn.0042f130
jmp case.0x41b8ce.5
push 0x494704
lea ecx, [esp + 0x34]
call fcn.00406500
push 0x62
push esi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x108]
push edx
mov byte [esp + 0x708], 0x21
call fcn.0042ef00
mov byte [esp + 0x6f8], 0x23
lea ecx, [esp + 0x30]
jmp 0x41c071
lea ecx, [esp + 0x18]
call fcn.00401f40
lea ecx, [esp + 0x1c]
call fcn.00401f40
lea ecx, [esp + 0x28]
call fcn.00401f40
push 0x494704
lea ecx, [esp + 0x54]
mov byte [esp + 0x6fc], 0x26
call fcn.00406500
mov byte [esp + 0x6f8], 0x27
mov eax, dword [0x4b90c8]
push eax
lea ecx, [esp + 0x1c]
push 0x4980e8
push ecx
call fcn.004067e0
mov edx, dword [esi]
add esp, 0xc
push edx
lea eax, [esp + 0x20]
push 0x4980e8
push eax
call fcn.004067e0
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [esp + 0x28]
push 5
push 0
push edx
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x50]
call fcn.00401f20
lea ecx, [esp + 0x28]
call fcn.00401f20
lea ecx, [esp + 0x1c]
call fcn.00401f20
lea ecx, [esp + 0x18]
jmp 0x41c1f6
lea ecx, [esp + 0x1c]
call fcn.00401f40
mov byte [esp + 0x6f8], 0x28
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x20]
push 0x4980e8
push ecx
call fcn.004067e0
mov esi, dword [esp + 0x28]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41c1e1
push 0x4980f4
lea edx, [esp + 0x5c]
push 0x4b90c8
push edx
call fcn.00406070
mov eax, dword [eax]
add esp, 0xc
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x58]
call fcn.00401f20
push 5
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x1c]
call fcn.00401f20
mov byte [esp + 0x6f8], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6f8], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c24e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x6f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6e8
ret 8