Function at 0x4113d0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd5af
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x5293c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x52ae64]
test eax, eax
jne 0x41144f
push 0xf4
call fcn.004b5cee
mov edi, eax
add esp, 4
mov dword [ebp - 0x1f0], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x411441
push 0xf4
push 0
push edi
call fcn.004b7c40
add esp, 0xc
mov ecx, edi
call fcn.0040bb90
jmp 0x411443
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x52ae64], eax
push str._delay
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call sym.GameDownloader.exe_public_virtual:_int___thiscall_DuiLib::CComboUI::GetCurSel_void_const
mov ecx, eax
call fcn.00402f70
cmp dword [ebp - 0xa8], 0
mov dword [ebp - 4], 1
jne 0x411555
push str.SoftwareSNGameDownloader
push reloc.WS2_32.dll_accept
call fcn.00401cb0
add esp, 8
test al, al
je 0x411508
call fcn.0040a850
mov ecx, esi
call fcn.00411150
test al, al
jne 0x411549
push 1
push 0x64
push str.path
push str.SoftwareSNBK
lea eax, [ebp - 0x28]
push reloc.WS2_32.dll_accept
push eax
call fcn.00401aa0
add esp, 0x18
cmp dword [ebp - 0x18], 0
je 0x4114f4
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4114f4
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x28]
call fcn.00402da0
mov byte [ebp - 0x1e9], 1
jmp 0x4119d8
call fcn.0040a850
mov ecx, esi
call fcn.00411240
test al, al
jne 0x4119ca
mov ecx, esi
call fcn.00411150
test al, al
jne 0x4119ca
mov ecx, esi
call fcn.004112c0
test al, al
jne 0x4119ca
mov ecx, esi
call fcn.004111b0
test al, al
jne 0x4119ca
mov byte [ebp - 0x1e9], 1
jmp 0x4119d8
cmp dword [ebp - 0xa4], 0xf
lea eax, [ebp - 0xb8]
cmova eax, dword [ebp - 0xb8]
push eax
call fcn.004c6df0
mov edi, eax
add esp, 4
test edi, edi
je 0x4119d1
mov ecx, esi
call fcn.00411150
test al, al
jne 0x4119ca
mov ecx, esi
call fcn.004112c0
test al, al
jne 0x4119ca
mov ecx, esi
call fcn.004111b0
test al, al
jne 0x4119ca
imul eax, edi, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00411240
test al, al
jne 0x4119ca
mov ecx, esi
call fcn.00411150
test al, al
jne 0x4119ca
mov ecx, esi
call fcn.004112c0
test al, al
jne 0x4119ca
mov ecx, esi
call fcn.004111b0
test al, al
jne 0x4119ca
push 1
push 0x64
push str.path
push str.SoftwareSNBK
lea eax, [ebp - 0x40]
push reloc.WS2_32.dll_accept
push eax
call fcn.00401aa0
add esp, 0x18
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 2
je 0x4119c0
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4119c0
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4119c0
lea eax, [ebp - 0xe8]
push eax
call fcn.00401410
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 3
push eax
call fcn.00401230
add esp, 8
cmp dword [ebp - 0x2c], 0xf
lea edi, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
cmova edi, dword [ebp - 0x40]
mov byte [ebp - 4], 4
test edx, edx
je 0x4116ee
push 0x100
lea eax, [ebp - 0x1e8]
push 0
push eax
call fcn.004b7c40
add esp, 0xc
mov ecx, 0x4e2b14
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x1e8], 1
cmp ecx, 0x4e2b16
jne 0x4116a3
mov edx, dword [ebp - 0x30]
or ecx, 0xffffffff
lea eax, [edx - 1]
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [ecx + edi]
add ecx, edi
mov al, byte [ebp + eax - 0x1e8]
test al, al
jne 0x4116ea
cmp ecx, edi
je 0x4116ee
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x1e8]
test al, al
je 0x4116d6
sub ecx, edi
jmp 0x4116f1
or ecx, 0xffffffff
inc ecx
mov dword [ebp - 0x18], 0
cmp edx, ecx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
cmovb ecx, edx
cmp dword [ebp - 0x2c], 0xf
push ecx
cmova eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.00403900
mov ecx, dword [ebp - 0x18]
mov eax, closesocket
mov edx, dword [ebp - 0xc0]
sub eax, ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x200], edx
cmp eax, edx
jb 0x411a2f
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
cmova eax, dword [ebp - 0x28]
lea edi, [ebp - 0x58]
cmp dword [ebp - 0xbc], 0xf
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0xd0]
cmova eax, dword [ebp - 0xd0]
mov dword [ebp - 0x1f0], eax
lea eax, [edx + ecx]
mov edx, 0xf
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x1f8], eax
movups xmmword [ebp - 0x58], xmm0
cmp eax, edx
jbe 0x4117df
or eax, edx
cmp eax, 0x7fffffff
jbe 0x4117a8
mov eax, closesocket
jmp 0x4117b2
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x1f4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004038a0
mov edx, dword [ebp - 0x1f4]
mov edi, eax
mov eax, dword [ebp - 0x1f8]
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x58], edi
push ecx
push dword [ebp - 0x1fc]
mov dword [ebp - 0x48], eax
push edi
mov dword [ebp - 0x44], edx
call fcn.004b76c0
push dword [ebp - 0x200]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1f0]
add eax, edi
push eax
call fcn.004b76c0
mov eax, dword [ebp - 0x1f8]
add esp, 0x18
mov byte [edi + eax], 0
cmp dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x58]
push 1
cmova ecx, dword [ebp - 0x58]
lea eax, [ebp - 0xe8]
cmp dword [ebp - 0xd4], 0xf
push ecx
cmova eax, dword [ebp - 0xe8]
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41199a
lea eax, [ebp - 0xa0]
mov ecx, esi
push eax
call fcn.00410cf0
cmp dword [ebp - 0x90], 0
mov byte [ebp - 4], 7
jne 0x4118ef
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.00410f70
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
call fcn.00401410
add esp, 4
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 9
jbe 0x411897
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401950
add esp, 8
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xb
call fcn.00402da0
cmp dword [ebp - 0x5c], 7
lea ecx, [ebp - 0x70]
push 0
cmova ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 7
cmova eax, dword [ebp - 0x88]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00410a20
lea ecx, [ebp - 0x70]
call fcn.00402d40
lea ecx, [ebp - 0x88]
jmp 0x41198a
cmp dword [ebp - 0x8c], 0xf
lea eax, [ebp - 0xa0]
cmova eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41198f
cmp dword [ebp - 0x8c], 0xf
lea eax, [ebp - 0xa0]
cmova eax, dword [ebp - 0xa0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401950
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xc
cmova eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00401950
add esp, 0x10
cmp dword [ebp - 0x5c], 7
lea ecx, [ebp - 0x70]
push 0
cmova ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 7
push ecx
cmova eax, dword [ebp - 0x88]
mov ecx, esi
push 0
push eax
mov byte [ebp - 4], 0xd
call fcn.00410a20
lea ecx, [ebp - 0x88]
call fcn.00402d40
lea ecx, [ebp - 0x70]
call fcn.00402d40
lea ecx, [ebp - 0xa0]
call fcn.00402da0
lea ecx, [ebp - 0x58]
call fcn.00402da0
lea ecx, [ebp - 0x28]
call fcn.00402da0
lea ecx, [ebp - 0xd0]
call fcn.00402da0
lea ecx, [ebp - 0xe8]
call fcn.00402da0
lea ecx, [ebp - 0x40]
call fcn.00402da0
jmp 0x4119d1
mov ecx, esi
call fcn.004110d0
mov byte [ebp - 0x1e9], 0
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xf
jbe 0x411a0e
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411a04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a34
push ecx
push edx
call fcn.004b5d1e
add esp, 8
mov al, byte [ebp - 0x1e9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5d2c
mov esp, ebp
pop ebp
ret
call fcn.00402b80
call fcn.004ba13f
int3