Function at 0x50c7af
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5dc
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x18f]
push ebx
push eax
mov byte [ebp - 0x190], bl
call fcn.005306b0
xor eax, eax
mov word [ebp - 0x5c8], bx
lea edi, [ebp - 0x5c6]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov esi, 0x148
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x5b4]
push ebx
push eax
mov dword [ebp - 0x5b8], ebx
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x464]
push ebx
push eax
mov dword [ebp - 0x468], ebx
call fcn.005306b0
add esp, 0xc
push 0x7f
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.005306b0
xor eax, eax
mov word [ebp - 0x5d8], bx
lea edi, [ebp - 0x5d6]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
add esi, 0xffffffbb
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x317]
push ebx
push eax
mov byte [ebp - 0x318], bl
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
push str.Upld.ark
lea edi, [ebp - 0x318]
call fcn.00470e3d
pop ecx
mov esi, 0x3a98
push esi
mov ecx, edi
call fcn.0043232a
test eax, eax
pop ecx
jne 0x50c8ad
xor eax, eax
jmp 0x50cc07
push 0x12da
lea eax, [ebp - 0x5c8]
push str..UpdatePAULA.c
push eax
call fcn.004fb92f
add esp, 0xc
push 0x12dc
lea ebx, [ebp - 0x5b8]
call fcn.005111e9
test eax, eax
pop ecx
jne 0x50c8ed
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12de
call fcn.005111e9
pop ecx
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]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x5c8]
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.004f9ee0
add esp, 0x20
cmp eax, 0xdbba00
jge 0x50c923
cmp dword [0x70ff1c], 0
je 0x50c8a6
lea eax, [ebp - 0x210]
call fcn.004ccb8b
xor eax, eax
call fcn.0046a629
lea eax, [ebp - 0x190]
call fcn.0046a629
mov ebx, str._s_s_s_s
jmp 0x50ca62
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x468]
call fcn.005117e1
test eax, eax
pop ecx
je 0x50ca57
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]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x464]
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.004f9ee0
add esp, 0x20
cmp eax, 0xea60
jle 0x50ca57
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x5d8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x464]
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.004f9ee0
add esp, 0x20
cmp eax, 0xea60
jle 0x50ca57
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x464]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x5c8]
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.004f9ee0
add esp, 0x20
cmp eax, 0xf731400
jge 0x50ca57
push str.Branches
push str.P2_DC001
push 0x5f5380
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.00531b2f
push 0
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0042faf9
add esp, 0x24
cmp eax, dword [0x5f3744]
jge 0x50ca57
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005312a0
lea esi, [ebp - 0x464]
lea edi, [ebp - 0x5d8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
pop ecx
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x190]
call fcn.0046a629
test eax, eax
jne 0x50c94a
lea edx, [ebp - 0x210]
call fcn.004ccc0d
test eax, eax
jne 0x50c8a6
push eax
call fcn.00512532
test eax, eax
pop ecx
jne 0x50ca98
push str.:5:SendUploadArchiveToMostLikelyMultiStore___FAILED:_The_upload_package_cannot_be_locked_because_it_is_already_in_a_locked_state_by_someone_else_
call fcn.0042bd38
pop ecx
jmp 0x50c8a6
push 0x36ee80
call fcn.00511f94
pop ecx
mov edi, str.Branches
push edi
push str.P2_DC001
push 0x5f5380
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.00531b2f
mov esi, 0x7530
push esi
lea ecx, [ebp - 0x110]
call fcn.0043232a
add esp, 0x1c
test eax, eax
jne 0x50cb09
push esi
lea ecx, [ebp - 0x110]
call fcn.0043262d
test eax, eax
pop ecx
jne 0x50cb09
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:6:SendUploadArchiveToMostLikelyMultiStore___encountered_a_problem:_CreateDirectorySuper___s___FIFTEEN_SECONDS__FAILED:__s
call fcn.0042b70b
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x190]
call fcn.0050cc16
pop ecx
lea esi, [ebp - 0x110]
call fcn.004cd889
mov eax, esi
call fcn.004ccc2f
test eax, eax
mov ebx, 0x104
jne 0x50cb54
mov eax, esi
push eax
call fcn.00530f70
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x50cb54
push 0x55f6cc
mov eax, ebx
call fcn.004ccd0f
pop ecx
lea eax, [ebp - 0x190]
push eax
mov eax, ebx
lea esi, [ebp - 0x110]
call fcn.004ccd0f
pop ecx
mov eax, esi
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x50cb99
push str._GetLastError_
mov eax, esi
push eax
lea eax, [ebp - 0x318]
push eax
push str.:6:SendUploadArchiveToMostLikelyMultiStore___FAILED:_MoveFile___s_____s___FAILED:__s
call fcn.0042b70b
add esp, 0x10
call fcn.005121fa
push edi
push str._s____
lea edi, [ebp - 0x318]
call fcn.00470e3d
pop ecx
pop ecx
lea eax, [ebp - 0x110]
call fcn.004ccf84
call fcn.00432263
test eax, eax
je 0x50cc04
push str.:2:SendUploadArchiveToMostLikelyMultiStore___found_that_this_store_has_branch_store_updates_but_does_not_have_internet_access_to_send_them_
call fcn.0042bd38
pop ecx
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, edi
push eax
call fcn.004306e9
add esp, 0xc
test eax, eax
jne 0x50cc04
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
mov eax, edi
push eax
push str.:7:SendUploadArchiveToMostLikelyMultiStore___FAILED_to_upload_other_branch_store_uploads:_MoveFiles___s_____s___0__FAILED:__s
call fcn.0042b70b
add esp, 0x10
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret