Function at 0x415470
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x41f3dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [0x424038]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x134], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
mov bl, 2
push eax
push ecx
mov byte [esp + 0x13c], bl
call fcn.0041b610
mov eax, dword [esi + 0x3b0]
add esp, 8
test eax, eax
je 0x41575f
lea edx, [esp + 0x24]
push str.GameLogin.new
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x41575f
lea eax, [esp + 0x24]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41575f
mov ecx, dword [esi + 0x3b4]
mov byte [esp + eax + 0x24], 0
mov esi, dword [ecx]
test esi, esi
jne 0x41552f
xor eax, eax
jmp 0x415536
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00413790
mov edx, dword [esp + 0x14]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x41569f
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jle 0x41569f
inc eax
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00411fc0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
mov byte [esp + 0x134], 3
je 0x4155ce
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41559e
mov edx, dword [0x42403c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4155a5
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4155b5
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00413790
jmp 0x4155ce
lea ecx, [esp + 0x10]
call fcn.004105b0
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x42403c]
mov byte [esp + 0x134], bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x415604
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415604
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, dword [ecx - 0xc]
lea ebp, [ecx - 0xc]
cmp edx, 1
jg 0x41561c
mov edx, dword [ecx - 4]
test edx, edx
jge 0x41566f
mov ebx, dword [ecx - 8]
test ebx, ebx
jle 0x415625
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00410180
test eax, eax
je 0x415673
mov edi, dword [esp + 0x10]
lea ecx, [ebx + 1]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebx
mov eax, dword [0x42403c]
cmp ebp, eax
je 0x41566f
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41566f
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.0041dcf0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00410210
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov byte [eax + ecx], 0
push 0x28a
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x4156c2
mov edx, dword [eax - 4]
test edx, edx
jge 0x415702
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4156cb
mov ecx, ebp
push ecx
lea ecx, [esp + 0x18]
call fcn.00410180
test eax, eax
je 0x415702
mov edi, dword [esp + 0x14]
lea ecx, [ebp + 1]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [eax - 8], ebp
call fcn.004101e0
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebp, eax
test ebp, ebp
jne 0x41573c
push eax
lea edx, [esp + 0x24]
push eax
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x14]
call fcn.00410210
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call fcn.0040e080
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 0
call fcn.0040e080
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.0040e080
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret