Function at 0x508950
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [ebp + 8]
push eax
push str.server_textures_sharedPersTex_s
lea ecx, [ebp - 0x32c]
push ecx
call fcn.0041e320
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push str.server_textures_sharedPersTex_s
lea eax, [ebp - 0x228]
push eax
call fcn.0041e320
add esp, 0xc
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x10], ecx
jmp 0x50899d
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x5089a9
jmp 0x508994
mov edx, 1
imul eax, edx, 0xfffffffd
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0x74
mov edx, 1
imul eax, edx, 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0x78
mov edx, 1
imul eax, edx, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0x74
push 0x716764
lea edx, [ebp - 0x32c]
push edx
call fcn.00690360
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5089fa
xor eax, eax
jmp 0x508bc8
mov eax, dword [ebp - 0x18]
push eax
call fcn.0068fac0
add esp, 4
push 0x716764
lea ecx, [ebp - 0x228]
push ecx
call fcn.00690360
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x508a85
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0xc]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.006b8bd0
add esp, 0xc
test eax, eax
je 0x508a71
lea ecx, [ebp - 0x20]
push ecx
push str.Page_number:__d
lea edx, [ebp - 0x430]
push edx
call fcn.00424b10
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jne 0x508a6f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x508a71
jmp 0x508a2a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0068fac0
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x508bc8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
jmp 0x508a9e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x80
jge 0x508af2
mov eax, dword [ebp - 4]
push eax
push str.server_textures_sharedpeople_tex_03d.tga
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041e320
add esp, 0xc
push 0x716764
lea edx, [ebp - 0x124]
push edx
call fcn.00690360
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x508ae4
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x508af2
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0068fac0
add esp, 4
jmp 0x508a95
cmp dword [ebp - 8], 0
jne 0x508b63
mov dword [ebp - 4], 0
jmp 0x508b0a
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x100
jge 0x508b63
mov eax, dword [ebp - 4]
push eax
push str.server_textures_sharedpeople2_tex_03d.tga
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041e320
add esp, 0xc
push 0x716764
lea edx, [ebp - 0x124]
push edx
call fcn.00690360
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x508b55
mov eax, dword [ebp - 4]
add eax, 0x80
mov dword [ebp - 8], eax
jmp 0x508b63
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0068fac0
add esp, 4
jmp 0x508b01
cmp dword [ebp - 8], 0
jne 0x508b6d
xor eax, eax
jmp 0x508bc8
push 0x717e54
lea edx, [ebp - 0x228]
push edx
call fcn.00690360
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x508b8e
xor eax, eax
jmp 0x508bc8
mov eax, dword [ebp - 8]
push eax
push str.Page_number:__d_n
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00485940
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.0068fac0
add esp, 4
push 1
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x32c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret