Function at 0x403639
Capabilities:
Check if file exists
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44946e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x209c
call fcn.0043f800
mov eax, dword [0x45b1d4]
xor eax, esp
mov dword [esp + 0x2098], eax
push ebx
push esi
push edi
mov eax, dword [0x45b1d4]
xor eax, esp
push eax
lea eax, [esp + 0x20b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20b8], ebx
call fcn.00403438
test eax, eax
jne 0x4036de
push ebx
push 1
lea esi, [esp + 0x20]
call fcn.004022b6
xor eax, eax
mov ecx, dword [esp + 0x20b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2098]
xor ecx, esp
call fcn.0042d4ab
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x2c], ebx
je 0x4036ac
push str.dtd_kr_installer.exe
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00405e08
add esp, 0xc
push 0x1000
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x20c0], 1
push ebx
mov word [esp + 0xb0], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x88]
mov word [esp + 0x20a2], bx
call fcn.00401c6e
lea eax, [esp + 0x34]
lea esi, [esp + 0x6c]
mov byte [esp + 0x20b8], 2
call fcn.00401c8a
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x20bc], 3
call fcn.004013ad
pop ecx
mov eax, esi
push eax
call fcn.004013ad
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
pop ecx
jae 0x403780
lea eax, [esp + 0x70]
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x9c]
push eax
lea eax, [esp + 0x8c]
call fcn.00405e4d
test eax, eax
jne 0x4037cd
push ebx
lea esi, [esp + 0x70]
xor edi, edi
inc edi
push edi
call fcn.004022b6
push ebx
push edi
lea esi, [esp + 0x90]
call fcn.004022b6
push ebx
push edi
lea esi, [esp + 0x3c]
call fcn.004022b6
push ebx
push edi
jmp 0x4036af
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4037dc
lea eax, [esp + 0x38]
push ebx
push eax
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4037fb
lea eax, [esp + 0x38]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
push ebx
lea esi, [esp + 0x70]
je 0x4037a4
push 1
call fcn.004022b6
push ebx
push 1
lea esi, [esp + 0x90]
mov byte [esp + 0x20c0], 1
call fcn.004022b6
push str.locate.info
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00405e08
mov eax, dword [esp + 0x60]
add esp, 0xc
push 8
pop esi
cmp dword [esp + 0x68], esi
jae 0x403853
lea eax, [esp + 0x54]
push eax
call edi
test eax, eax
jne 0x4038a1
cmp dword [esp + 0x68], esi
mov eax, dword [esp + 0x54]
jae 0x403868
lea eax, [esp + 0x54]
push eax
call fcn.00403225
cmp dword [esp + 0x6c], esi
mov eax, dword [esp + 0x58]
pop ecx
jae 0x40387d
lea eax, [esp + 0x54]
push eax
call edi
test eax, eax
jne 0x4038a1
push ebx
push 1
lea esi, [esp + 0x58]
call fcn.004022b6
push ebx
push 1
lea esi, [esp + 0x3c]
call fcn.004022b6
jmp 0x4036ac
cmp dword [esp + 0x30], esi
mov ecx, dword [esp + 0x1c]
jae 0x4038af
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x4038bd
lea eax, [esp + 0x38]
push 5
push ecx
push dword [esp + 0x1c]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor edi, edi
cmp eax, 0x20
ja 0x403903
push ebx
push 1
lea esi, [esp + 0x58]
call fcn.004022b6
push ebx
push 1
lea esi, [esp + 0x3c]
call fcn.004022b6
push ebx
push 1
lea esi, [esp + 0x20]
call fcn.004022b6
mov eax, edi
jmp 0x4036ba
inc edi
jmp 0x4038d8