Function at 0x51f617
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e8
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call fcn.005306b0
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.004fb92f
add esp, 0xc
push dword [ebp - 0x5c4]
mov edi, str.Counting_DB_
push edi
push 1
call fcn.004934c9
pop ecx
push eax
push str._s_s_sCount_
lea ebx, [esi + 1]
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004ce4e5
lea eax, [ebp - 0x114]
push eax
call fcn.00432310
add esp, 0x1c
test eax, eax
jne 0x51f729
or eax, 0xffffffff
jmp 0x51fb86
push dword [ebp - 0x5c4]
push edi
push 1
call fcn.004934c9
pop ecx
push eax
push str._s_s_sCountPRP077_
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004ce4e5
lea eax, [ebp - 0x114]
push eax
call fcn.00432310
add esp, 0x1c
test eax, eax
jne 0x51f810
push esi
push eax
mov byte [ebp - 0x42c], al
lea eax, [ebp - 0x42b]
push eax
call fcn.005306b0
lea eax, [ebp - 0x114]
add esp, 0xc
push eax
mov ecx, ebx
lea eax, [ebp - 0x42c]
call fcn.004ccc3f
pop ecx
push 0
push str.PRP001
push str.PRP077
push ebx
push eax
call fcn.004ce6a0
add esp, 0x14
cmp word [ebp - 0x5b4], 0x7d8
jne 0x51f7ff
cmp word [ebp - 0x5b2], 7
ja 0x51f7ff
lea eax, [ebp - 0x42c]
push eax
call fcn.00432310
test eax, eax
pop ecx
je 0x51f7ff
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x51f810
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.0042b70b
add esp, 0xc
jmp 0x51f810
push 0x4e20
lea ecx, [ebp - 0x114]
call fcn.0043262d
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.004f9c3d
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.004ccb8b
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.004f9c3d
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.004934c9
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.004ce4e5
add esp, 0x24
lea edx, [ebp - 0x324]
call fcn.004ccc0d
test eax, eax
je 0x51f95b
push esi
push str._PUT_SERVER_IP_HERE_COMMONUpload_Decompositions_
push 0x5dc2f8
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x14
lea eax, [ebp - 0x5a4]
push 0x900004
push eax
lea ecx, [ebp - 0x21c]
call fcn.00433029
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
je 0x51fb95
lea eax, [ebp - 0x578]
push eax
mov ecx, ebx
lea eax, [ebp - 0x324]
call fcn.004ccc3f
pop ecx
push esi
push eax
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x51f93f
test byte [ebp - 0x5a4], 0x10
jne 0x51f954
push esi
lea eax, [ebp - 0x324]
push eax
push str.:8:CopyPRP077Reports___FAILED:_The_store_directory__s_doesnt_look_right_for__s.
call fcn.0042bd38
add esp, 0xc
mov eax, edi
call fcn.004334b6
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.004ce4e5
add esp, 0x24
lea eax, [ebp - 0x5a4]
push 0x100001
push eax
lea ecx, [ebp - 0x21c]
call fcn.00433029
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 0x5bc], eax
je 0x51fb6d
lea eax, [ebp - 0x578]
push str._REPRINT
push eax
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x51fa3a
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.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x51fa16
mov ecx, dword [ebp - 0x5bc]
lea eax, [ebp - 0x464]
call fcn.004333a6
test eax, eax
jne 0x51f9e9
lea eax, [ebp - 0x438]
push esi
push eax
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
jne 0x51fa3a
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.00433421
lea eax, [ebp - 0x578]
push eax
mov ecx, ebx
lea eax, [ebp - 0x21c]
call fcn.004ccc3f
pop ecx
lea eax, [ebp - 0x5d4]
push eax
lea ecx, [ebp - 0x590]
call fcn.004fc6cd
mov eax, dword [ebp - 0x5bc]
pop ecx
call fcn.004334b6
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x21c]
call fcn.005228af
test eax, eax
pop ecx
je 0x51fb4d
call fcn.0051a5ca
test eax, eax
jne 0x51fabd
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push str.:7:CopyPRP077Reports___FAILED:_LogUpdatedFile___s___FAILED:__s
call fcn.0042bd38
add esp, 0xc
jmp 0x51fac3
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.004f96f4
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.004f96f4
add esp, 0x10
push eax
call fcn.004f9d9b
push eax
call fcn.0053146e
add esp, 0xc
cmp eax, 0xc
jle 0x51fb6d
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.004fa0a6
add esp, 0x14
push eax
lea eax, [ebp - 0x21c]
push eax
push str.:4:CopyPRP077ReportsToWebServer___had_to_time_adjust___s__from__s.
call fcn.0042bd38
add esp, 0xc
lea eax, [ebp - 0x5b4]
push eax
push 0
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00432d4b
jmp 0x51fb6a
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.0042bd38
add esp, 0x10
inc dword [ebp - 0x5c0]
cmp dword [ebp - 0x5c0], 0x20
jl 0x51f84e
mov eax, dword [ebp - 0x5b8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
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.0042b70b
add esp, 0xc
jmp 0x51f721