Function at 0x401f50
Capabilities:
Check if file exists
Copy file
Get common file path
Get startup folder
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x283c
call fcn.004047c0
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x2838], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4074b0
push 0x67
push esi
mov dword [esp + 0x20], eax
call edi
push 0x64
push 0x4073e8
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401d70
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x4074b0
push 0x4073e8
push 0
mov dword [0x407578], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4020ff
mov ecx, dword [ebp + 0x14]
push ecx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor edx, edx
push 0x1fe
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x23a]
push eax
mov word [esp + 0x23c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x84a]
push edx
mov word [esp + 0x84c], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push 0x2e
push eax
lea ecx, [esp + 0x5a]
push ecx
mov word [esp + 0x5c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor edx, edx
push 0x2e
push edx
lea eax, [esp + 0x8a]
push eax
mov word [esp + 0x8c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x204a]
push edx
mov word [esp + 0x204c], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0xba]
push ecx
mov word [esp + 0xbc], ax
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 0xc
push str.__md5
push edx
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_wcsncat]
mov esi, eax
add esp, 8
test esi, esi
je 0x40212b
add esi, 0xc
push 0x4055e0
push esi
call edi
add esp, 8
test eax, eax
jne 0x402118
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4020e4
sub eax, edx
sar eax, 1
push eax
push esi
lea eax, [esp + 0x238]
push eax
jmp 0x402126
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2838]
xor ecx, esp
call fcn.00403d9c
mov esp, ebp
pop ebp
ret 0x10
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x238]
push ecx
call ebx
add esp, 0xc
mov edx, dword [esp + 0x10]
push 0x4055e4
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x402185
add esi, 0xe
push 0x4055e0
push esi
call edi
add esp, 8
test eax, eax
jne 0x402172
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402157
sub eax, edx
sar eax, 1
push eax
push esi
lea eax, [esp + 0x848]
push eax
jmp 0x402180
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x848]
push ecx
call ebx
add esp, 0xc
mov edx, dword [esp + 0x10]
push str.__ext
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4021df
add esi, 0xc
push 0x4055e0
push esi
call edi
add esp, 8
test eax, eax
jne 0x4021cc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4021b1
sub eax, edx
sar eax, 1
push eax
push esi
lea eax, [esp + 0xb8]
push eax
jmp 0x4021da
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [esp + 0xb8]
push ecx
call ebx
add esp, 0xc
mov edx, dword [esp + 0x10]
push str.__icon
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x402245
add esi, 0xe
push 0x4055e0
push esi
call edi
add esp, 8
test eax, eax
jne 0x40222b
mov eax, esi
lea edx, [eax + 2]
jmp 0x402210
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402210
sub eax, edx
sar eax, 1
push eax
push esi
lea eax, [esp + 0x2048]
push eax
jmp 0x402239
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x2048]
push ecx
call ebx
add esp, 0xc
mov byte [0x40758c], 1
mov edx, dword [esp + 0x10]
push str.__hwnd
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x402299
add esi, 0xe
push 0x4055e0
push esi
call edi
add esp, 8
test eax, eax
jne 0x402289
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402271
sub eax, edx
sar eax, 1
push eax
push esi
lea eax, [esp + 0x58]
push eax
jmp 0x402294
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x58]
push ecx
call ebx
add esp, 0xc
mov edx, dword [esp + 0x10]
push str.__index
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4022f3
add esi, 0x10
push 0x4055e0
push esi
call edi
add esp, 8
test eax, eax
jne 0x4022e0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4022c5
sub eax, edx
sar eax, 1
push eax
push esi
lea eax, [esp + 0x88]
push eax
jmp 0x4022ee
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x88]
push ecx
call ebx
add esp, 0xc
mov edx, str.__ldyunupload_start_
call fcn.00403360
mov edx, dword [esp + 0x10]
call fcn.00403360
mov edx, dword [str.md5:]
mov eax, dword [0x4056bc]
mov cx, word [0x4056c0]
push 0x1f6
mov dword [esp + 0x434], edx
lea edx, [esp + 0x43e]
push 0
push edx
mov dword [esp + 0x440], eax
mov word [esp + 0x444], cx
call sub.MSVCR100.dll_memset
lea eax, [esp + 0x23c]
add esp, 0xc
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402350
lea edi, [esp + 0x430]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402370
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402370
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x430]
rep movsb byte es:[edi], byte [esi]
call fcn.00403360
mov eax, dword [str.file:]
mov ecx, dword [0x4056c8]
mov edx, dword [0x4056cc]
push 0x7f4
mov dword [esp + 0x1844], eax
lea eax, [esp + 0x1850]
push 0
push eax
mov dword [esp + 0x1850], ecx
mov dword [esp + 0x1854], edx
call sub.MSVCR100.dll_memset
lea eax, [esp + 0x84c]
add esp, 0xc
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4023e0
lea edi, [esp + 0x1840]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402400
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402400
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x1840]
rep movsb byte es:[edi], byte [esi]
call fcn.00403360
mov ecx, dword [str.icon:]
mov edx, dword [0x4056d4]
mov eax, dword [0x4056d8]
push 0x7f4
mov dword [esp + 0x1044], ecx
lea ecx, [esp + 0x1050]
push 0
push ecx
mov dword [esp + 0x1050], edx
mov dword [esp + 0x1054], eax
call sub.MSVCR100.dll_memset
lea eax, [esp + 0x204c]
add esp, 0xc
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402470
lea edi, [esp + 0x1040]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402490
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402490
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x1040]
rep movsb byte es:[edi], byte [esi]
call fcn.00403360
mov esi, dword [sym.imp.MSVCR100.dll__wtoi]
lea edx, [esp + 0x50]
push edx
call esi
mov edi, eax
lea eax, [esp + 0x84]
add esp, 4
push eax
call esi
add esp, 4
mov edx, str.obs_init
mov dword [0x407580], edi
mov dword [0x407584], eax
call fcn.00403360
push 1
call dword [sym.imp.libeSDKOBS.dll_obs_initialize]
add esp, 4
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x63a]
push edx
mov word [esp + 0x63c], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x630]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
lea eax, [esp + 0x630]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402550
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x634]
lea ecx, [esp + 0x38]
call fcn.00402a80
push 0xa
mov eax, str.ldremote_
lea ecx, [esp + 0x38]
call fcn.004029a0
mov eax, dword [esp + 0x34]
mov ebx, 8
cmp dword [esp + 0x48], ebx
jae 0x402593
lea eax, [esp + 0x34]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
mov edi, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x4025b9
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x4025b4
lea eax, [esp + 0x34]
push eax
push 0
call edi
push 0xc
mov eax, str.uploadcache_
lea ecx, [esp + 0x38]
call fcn.004029a0
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x4025d7
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
jne 0x4025f1
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x4025ec
lea eax, [esp + 0x34]
push eax
push 0
call edi
lea eax, [esp + 0x230]
lea edx, [eax + 2]
jmp 0x402600
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402600
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x234]
lea ecx, [esp + 0x38]
call fcn.004029a0
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x40262e
lea edx, [esp + 0x34]
call fcn.00403360
cmp byte [0x40758c], 0
je 0x40269f
mov edx, str.ldyunupload_png
call fcn.00403360
push 4
mov eax, str..png
lea ecx, [esp + 0x38]
mov dword [0x407580], 0
call fcn.004029a0
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x40266e
lea eax, [esp + 0x34]
push 0
push eax
lea edx, [esp + 0x2048]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x40268d
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x234]
call fcn.00401ad0
jmp 0x402801
push 0xff
lea eax, [esp + 0x135]
push 0
push eax
mov byte [esp + 0x13c], 0
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.MSVCR100.dll_setlocale]
add esp, 0xc
push 0x405408
push 0
call esi
push pe_nt_image_headers32
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.MSVCR100.dll_wcstombs]
add esp, 0x14
push 0x40520c
push 0
call esi
lea eax, [esp + 0x138]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402701
sub eax, edx
jne 0x402782
push 4
mov eax, str..apk
lea ecx, [esp + 0x38]
call fcn.004029a0
mov edx, str.ldyunupload_apk
call fcn.00403360
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x402734
lea eax, [esp + 0x34]
push 0
push eax
lea eax, [esp + 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, str.ldyunupload_apk
call fcn.00403360
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x40275d
lea edx, [esp + 0x34]
call fcn.00403360
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x402770
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x234]
call fcn.00401790
jmp 0x402801
mov edx, str.ldyunupload_file
call fcn.00403360
lea eax, [esp + 0xb0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402796
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb4]
lea ecx, [esp + 0x38]
call fcn.004029a0
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x4027c4
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x848]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, str.ldyunupload_file
call fcn.00403360
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x4027ed
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x134]
lea edx, [esp + 0x234]
call fcn.00401420
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 4
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x402868
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
jmp 0x402830
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call edi
test eax, eax
jne 0x402857
lea eax, [esp + 0x18]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
jne 0x402830
mov edx, str.ldyunupload_end
call fcn.00403360
cmp dword [esp + 0x48], 8
mov esi, dword [esp + 0x20]
jb 0x40288b
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x2844]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00403d9c
mov esp, ebp
pop ebp
ret 0x10