Function at 0x4d7d50
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5304a5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2f0
mov eax, dword [0x58b18c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x114], esi
call fcn.0043f3a0
cmp dword [eax + 0x14], 0x10
jb 0x4d7db2
mov eax, dword [eax]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
mov byte [ebp - 0x108], 0
push dword [ebp - 0x108]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.004e6180
add esp, 0xc
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xc8]
call fcn.00485d00
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.00414900
lea ecx, [ebp - 0xc8]
call fcn.00485dd0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x109], al
mov dword [ebp - 4], 0xffffffff
call fcn.00414900
cmp byte [ebp - 0x109], 0
jne 0x4d7e36
mov cl, 1
call fcn.004afbb0
call fcn.0043f3a0
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x4d7e45
mov edi, dword [edi]
mov dword [ebp - 0x110], edi
test edi, edi
je 0x4d8905
xor ecx, ecx
cmp byte [edi], cl
je 0x4d8905
mov eax, edi
nop
lea eax, [eax + 1]
inc ecx
cmp byte [eax], 0
jne 0x4d7e60
test ecx, ecx
je 0x4d8905
mov ecx, 0x564aa0
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d7e98
test dl, dl
je 0x4d7e94
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d7e98
add eax, 2
add ecx, 2
test dl, dl
jne 0x4d7e78
xor eax, eax
jmp 0x4d7e9d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d8905
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x108]
push dword [ebp - 0x104]
mov dword [ebp - 0x108], edi
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.004e6180
add esp, 0xc
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0xc8]
call fcn.00485d00
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 5
call fcn.00414900
lea ecx, [ebp - 0xc8]
call fcn.00485dd0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x109], al
mov dword [ebp - 4], 0xffffffff
call fcn.00414900
cmp byte [ebp - 0x109], 0
je 0x4d8905
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x110]
push dword [ebp - 0x104]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004e6180
add esp, 0xc
lea eax, [ebp - 0x14c]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x8c]
call fcn.0043e7a0
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.0047a930
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 9
call fcn.00414900
mov ecx, dword [ebp - 0x1c]
mov edi, closesocket
mov eax, edi
sub eax, ecx
cmp eax, 0x1a
jb 0x4d894b
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0x1a
cmovae eax, dword [ebp - 0x2c]
push str._backup_of_your_cod2_files
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x118]
lea ecx, [ebp - 0x44]
call fcn.004196c0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1c]
sub edi, ecx
cmp edi, 0x1f
jb 0x4d8950
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0x1f
cmovae eax, dword [ebp - 0x2c]
push str._backup_of_your_cod2_filesmain
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x118]
lea ecx, [ebp - 0x74]
call fcn.004196c0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x164]
call fcn.00414ed0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x14c]
call fcn.00414ed0
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xd
push ecx
lea eax, [ebp - 0x134]
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00479540
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xe
call fcn.00489a90
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x109], al
call fcn.00415b10
push fcn.00414d40
push 2
push 0x18
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 0xb
push eax
call fcn.004f7be5
cmp byte [ebp - 0x109], 0
jne 0x4d81cd
push 0x93
push str.3Could_not_create_backup_of_your_1original_game_files_3because_n_failed_to_create_the_backup_folder_1backup_of_your_cod2_files_3at_13__n
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.00417bf0
add esp, 8
mov byte [ebp - 4], 0xf
lea ecx, [esi + 4]
mov byte [esi], 0
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x55ac52
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004185e0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x4d80eb
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d80e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8955
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 0x10
jb 0x4d8131
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d8127
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8955
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x4d8165
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d815b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8955
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x4d81ab
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d81a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8955
push ecx
push edx
call fcn.004f79ae
add esp, 8
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00414900
jmp 0x4d892b
mov eax, dword fs:[0x2c]
xor dl, dl
mov byte [ebp - 0x109], dl
mov ecx, dword [eax]
mov eax, dword [0x9535ec]
cmp eax, dword [ecx + 4]
jle 0x4d8713
push 0x9535ec
call fcn.004f74f5
add esp, 4
cmp dword [0x9535ec], 0xffffffff
jne 0x4d870d
xorps xmm0, xmm0
mov byte [ebp - 4], 0x10
push 0xf
push str.CoD2MP_s.exe
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x14c]
movups xmmword [0x953410], xmm0
movups xmmword [0x953420], xmm0
call fcn.00417bf0
mov esi, eax
push 0xf
push str.CoD2MP_s.exe
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x134]
call fcn.00417bf0
add esp, 0x10
push eax
push esi
lea ecx, [ebp - 0x300]
call fcn.004e4be0
push 0x17
push str.gfx_d3d_mp_x86_s.dll
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x210]
call fcn.00417bf0
mov esi, eax
push 0x17
push str.gfx_d3d_mp_x86_s.dll
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1f8]
call fcn.00417bf0
add esp, 0x10
push eax
push esi
lea ecx, [ebp - 0x2d0]
call fcn.004e4be0
push 0x14
push str.gfx_d3d_x86_s.dll
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x1e0]
call fcn.00417bf0
mov esi, eax
push 0x14
push str.gfx_d3d_x86_s.dll
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x1c8]
call fcn.00417bf0
add esp, 0x10
push eax
push esi
lea ecx, [ebp - 0x2a0]
call fcn.004e4be0
push 0x11
push str.mainiw_15.iwd
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x1b0]
call fcn.00417bf0
mov esi, eax
push 0x11
push str.mainiw_15.iwd
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x198]
call fcn.00417bf0
add esp, 0x10
push eax
push esi
lea ecx, [ebp - 0x270]
call fcn.004e4be0
push 0x22
push str.mainlocalized_english_iw11.iwd
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x180]
call fcn.00417bf0
mov esi, eax
push 0x22
push str.mainlocalized_english_iw11.iwd
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x5c]
call fcn.00417bf0
add esp, 0x10
push eax
push esi
lea ecx, [ebp - 0x240]
call fcn.004e4be0
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x300]
push eax
push ecx
mov ecx, 0x953410
call fcn.00478d00
push fcn.00433d30
push 5
push 0x30
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 0x26
push eax
call fcn.004f7be5
mov byte [ebp - 4], 0x25
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x4d83d7
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d83cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 0x10
jb 0x4d8427
mov edx, dword [ebp - 0x180]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d841d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov byte [ebp - 4], 0x23
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
cmp ecx, 0x10
jb 0x4d8480
mov edx, dword [ebp - 0x198]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d8476
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov byte [ebp - 4], 0x22
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0xf
mov byte [ebp - 0x198], 0
cmp ecx, 0x10
jb 0x4d84d9
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d84cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0xf
mov byte [ebp - 0x1b0], 0
cmp ecx, 0x10
jb 0x4d8532
mov edx, dword [ebp - 0x1c8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d8528
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0xf
mov byte [ebp - 0x1c8], 0
cmp ecx, 0x10
jb 0x4d858b
mov edx, dword [ebp - 0x1e0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d8581
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1cc], 0xf
mov byte [ebp - 0x1e0], 0
cmp ecx, 0x10
jb 0x4d85e4
mov edx, dword [ebp - 0x1f8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d85da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0xf
mov byte [ebp - 0x1f8], 0
cmp ecx, 0x10
jb 0x4d863d
mov edx, dword [ebp - 0x210]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d8633
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1fc], 0xf
mov byte [ebp - 0x210], 0
cmp ecx, 0x10
jb 0x4d8696
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d868c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp ecx, 0x10
jb 0x4d86ef
mov edx, dword [ebp - 0x14c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d86e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d895a
push ecx
push edx
call fcn.004f79ae
add esp, 8
push 0x533a70
call fcn.004f7999
add esp, 4
mov byte [ebp - 4], 0xb
push 0x9535ec
call fcn.004f74a4
add esp, 4
mov dl, byte [ebp - 0x109]
mov edi, dword [0x953414]
mov esi, dword [edi]
cmp esi, edi
je 0x4d888a
mov byte [ebp - 0x110], 0
nop word [eax + eax]
cmp dword [esi + 0x1c], 0x10
lea eax, [esi + 8]
mov dword [ebp - 0x108], eax
mov ecx, eax
jb 0x4d8743
mov ecx, dword [eax]
push dword [ebp - 0x110]
lea eax, [ebp - 0x104]
mov dword [ebp - 0x104], ecx
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.004e6180
add esp, 0xc
lea eax, [ebp - 0x14c]
mov byte [ebp - 4], 0x28
push eax
lea ecx, [ebp - 0xc8]
call fcn.00485d00
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0x2a
call fcn.00414900
lea ecx, [ebp - 0xc8]
call fcn.00485dd0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x10a], al
mov byte [ebp - 4], 0xb
call fcn.00414900
cmp byte [ebp - 0x10a], 0
jne 0x4d887a
mov eax, dword [ebp - 0x108]
add eax, 0x18
mov dword [ebp - 0x114], eax
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4d87d0
mov ecx, dword [eax]
mov byte [ebp - 0x11c], 0
lea eax, [ebp - 0x104]
push dword [ebp - 0x11c]
mov dword [ebp - 0x104], ecx
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.004e6180
add esp, 0xc
lea eax, [ebp - 0x14c]
mov byte [ebp - 4], 0x2b
push eax
lea ecx, [ebp - 0x100]
call fcn.00485d00
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0x2d
call fcn.00414900
lea ecx, [ebp - 0x100]
call fcn.00485dd0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 0x10a], al
mov byte [ebp - 4], 0xb
call fcn.00414900
cmp byte [ebp - 0x10a], 0
je 0x4d887a
mov eax, dword [ebp - 0x108]
cmp dword [eax + 0x14], 0x10
jb 0x4d8855
mov eax, dword [eax]
mov ecx, dword [ebp - 0x114]
cmp dword [ecx + 0x14], 0x10
jb 0x4d8863
mov ecx, dword [ecx]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne dl
mov byte [ebp - 0x109], dl
jmp 0x4d8880
mov dl, byte [ebp - 0x109]
mov esi, dword [esi]
cmp esi, edi
jne 0x4d8730
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 4]
mov byte [esi], dl
call fcn.00414ed0
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x4d88d2
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d88c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8955
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x4d8165
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d815b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8955
jmp 0x4d815b
lea ecx, [esi + 4]
mov byte [esi], 0
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x55ac52
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004185e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f7466
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040a4d0
call fcn.0040a4d0
call fcn.005094c8
call fcn.005094c8
int3