Function at 0x500633
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e8
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x5c4], eax
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x5b4], bx
lea edi, [ebp - 0x5b2]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x13c
stosw word es:[edi], ax
lea eax, [ebp - 0x5a0]
push ebx
push eax
mov dword [ebp - 0x5a4], ebx
call fcn.005117f0
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call fcn.005117f0
add esp, 0xc
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.005117f0
add esp, 0xc
push esi
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call fcn.005117f0
xor eax, eax
mov word [ebp - 0x5d4], bx
lea edi, [ebp - 0x5d2]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push 0x85a
stosw word es:[edi], ax
lea eax, [ebp - 0x5b4]
push str..WebCreation.c
push eax
mov dword [ebp - 0x5b8], ebx
call fcn.004f2709
add esp, 0xc
push dword [ebp - 0x5c4]
mov edi, str.Counting_DB_
push edi
push 1
call fcn.0048a45f
pop ecx
push eax
push str._s_s_sCount_
lea ebx, [esi + 1]
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004c53b7
lea eax, [ebp - 0x114]
push eax
call fcn.0042adad
add esp, 0x1c
test eax, eax
jne 0x500745
or eax, 0xffffffff
jmp 0x500ba2
push dword [ebp - 0x5c4]
push edi
push 1
call fcn.0048a45f
pop ecx
push eax
push str._s_s_sCountPRP077_
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004c53b7
lea eax, [ebp - 0x114]
push eax
call fcn.0042adad
add esp, 0x1c
test eax, eax
jne 0x50082c
push esi
push eax
mov byte [ebp - 0x42c], al
lea eax, [ebp - 0x42b]
push eax
call fcn.005117f0
lea eax, [ebp - 0x114]
add esp, 0xc
push eax
mov ecx, ebx
lea eax, [ebp - 0x42c]
call fcn.004c3b66
pop ecx
push 0
push str.PRP001
push str.PRP077
push ebx
push eax
call fcn.004c5572
add esp, 0x14
cmp word [ebp - 0x5b4], 0x7d8
jne 0x50081b
cmp word [ebp - 0x5b2], 7
ja 0x50081b
lea eax, [ebp - 0x42c]
push eax
call fcn.0042adad
test eax, eax
pop ecx
je 0x50081b
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x50082c
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x42c]
push eax
push str.:7:Failed_to_rename_the_web_PRP001_dir:___s__to___s_
call fcn.004265da
add esp, 0xc
jmp 0x50082c
push 0x4e20
lea ecx, [ebp - 0x114]
call fcn.0042b0ca
pop ecx
push 1
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x5b4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5e4]
push eax
movsd dword es:[edi], dword [esi]
call fcn.004f0b0e
mov esi, eax
lea edi, [ebp - 0x5b4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
lea eax, [ebp - 0x324]
movsd dword es:[edi], dword [esi]
call fcn.004c3ab2
and dword [ebp - 0x5c0], 0
push 0xffffffffffffffff
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x5b4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5e4]
push eax
movsd dword es:[edi], dword [esi]
call fcn.004f0b0e
mov esi, eax
lea edi, [ebp - 0x5b4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x5b0]
mov esi, dword [ebp - 0x5c4]
add esp, 0x18
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x5b4]
shr eax, 0x10
push eax
movzx eax, word [ebp - 0x5b4]
push eax
push esi
push str.Counting_DB_
push ecx
push 1
call fcn.0048a45f
pop ecx
pop ecx
push eax
push str._s_s_sCountPRP077_04d__02d__02d.txt.gz
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004c53b7
add esp, 0x24
lea edx, [ebp - 0x324]
call fcn.004c3b34
test eax, eax
je 0x500977
push esi
push str._PUT_SERVER_IP_HERE_COMMONUpload_Decompositions_
push str._s_s
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004c53b7
add esp, 0x14
lea eax, [ebp - 0x5a4]
push 0x900004
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042ba68
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
je 0x500bb1
lea eax, [ebp - 0x578]
push eax
mov ecx, ebx
lea eax, [ebp - 0x324]
call fcn.004c3b66
pop ecx
push esi
push eax
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x50095b
test byte [ebp - 0x5a4], 0x10
jne 0x500970
push esi
lea eax, [ebp - 0x324]
push eax
push str.:8:CopyPRP077Reports___FAILED:_The_store_directory__s_doesnt_look_right_for__s.
call fcn.00426c01
add esp, 0xc
mov eax, edi
call fcn.0042bea8
movzx eax, word [ebp - 0x5ae]
push eax
movzx eax, word [ebp - 0x5b2]
push eax
movzx eax, word [ebp - 0x5b4]
push eax
push str.Reports__PAULA__
lea eax, [ebp - 0x324]
push eax
push str._PUT_SERVER_IP_HERE_COMMONUpload_Decompositions_
push str._s_s_s_04d__02d__02dPRP077
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004c53b7
add esp, 0x24
lea eax, [ebp - 0x5a4]
push 0x100001
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042ba68
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 0x5bc], eax
je 0x500b89
lea eax, [ebp - 0x578]
push str._REPRINT
push eax
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x500a56
push 0x50
pop ecx
lea esi, [ebp - 0x5a4]
lea edi, [ebp - 0x464]
rep movsd dword es:[edi], dword [esi]
mov esi, str._REPRINT
lea eax, [ebp - 0x438]
push esi
push eax
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x500a32
mov ecx, dword [ebp - 0x5bc]
lea eax, [ebp - 0x464]
call fcn.0042bde5
test eax, eax
jne 0x500a05
lea eax, [ebp - 0x438]
push esi
push eax
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
jne 0x500a56
push 0x50
pop ecx
lea esi, [ebp - 0x464]
lea edi, [ebp - 0x5a4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x5bc]
lea eax, [ebp - 0x5a4]
call fcn.0042be60
lea eax, [ebp - 0x578]
push eax
mov ecx, ebx
lea eax, [ebp - 0x21c]
call fcn.004c3b66
pop ecx
lea eax, [ebp - 0x5d4]
push eax
lea ecx, [ebp - 0x590]
call fcn.004f34a7
mov eax, dword [ebp - 0x5bc]
pop ecx
call fcn.0042bea8
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00503888
test eax, eax
pop ecx
je 0x500b69
call fcn.004fb7c8
test eax, eax
jne 0x500ad9
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push str.:7:CopyPRP077Reports___FAILED:_LogUpdatedFile___s___FAILED:__s
call fcn.00426c01
add esp, 0xc
jmp 0x500adf
inc dword [ebp - 0x5b8]
sub esp, 0x10
lea esi, [ebp - 0x5d4]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f05c5
add esp, 0x10
push eax
sub esp, 0x10
lea esi, [ebp - 0x5b4]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f05c5
add esp, 0x10
push eax
call fcn.004f0c1d
push eax
call fcn.0051209e
add esp, 0xc
cmp eax, 0xc
jle 0x500b89
push 0
sub esp, 0x10
lea esi, [ebp - 0x5d4]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0f28
add esp, 0x14
push eax
lea eax, [ebp - 0x21c]
push eax
push str.:4:CopyPRP077ReportsToWebServer___had_to_time_adjust___s__from__s.
call fcn.00426c01
add esp, 0xc
lea eax, [ebp - 0x5b4]
push eax
push 0
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0042b7a4
jmp 0x500b86
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.:7:CopyPRP077Reports___FAILED:_gzPackFile___s_____s___FAILED:__s
call fcn.00426c01
add esp, 0x10
inc dword [ebp - 0x5c0]
cmp dword [ebp - 0x5c0], 0x20
jl 0x50086a
mov eax, dword [ebp - 0x5b8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
lea eax, [ebp - 0x21c]
push eax
push esi
push str.:8:CopyPRP077Reports___FAILED:_The_store__s_has_a_web_dir_but_no_server_directory_was_found:__s
call fcn.004265da
add esp, 0xc
jmp 0x50073d