Function at 0x430340
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4534cc
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x8a8], eax
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor eax, esp
push eax
lea eax, [esp + 0x8c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push str.ThreadDispatchMess:_process_mess_
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], esi
call fcn.00404c20
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, dword [0x491d10]
add esi, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x491d10
mov dword [esp + 0x20], esi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x104
lea eax, [esp + 0x698]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x8d4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4304a7
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x698]
call fcn.004013e0
lea edi, [esp + 0x14]
mov byte [esp + 0x8c8], 1
call fcn.0042e780
mov byte [esp + 0x8c8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x14]
call fcn.00431530
mov ebx, eax
call fcn.00431580
mov ecx, dword [esp + 0x14]
push 0x5c
push ecx
call fcn.0044043d
add esp, 8
test eax, eax
je 0x4304a7
sub eax, dword [esp + 0x14]
sar eax, 1
test eax, eax
jle 0x4304a7
inc eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.00431220
lea edi, [esp + 0x14]
mov byte [esp + 0x8c8], 2
call fcn.0042e780
mov byte [esp + 0x8c8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4304a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str.SafeRunBkavSafeRunManager.exe
call fcn.00431290
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x8c8], 3
call fcn.0042e780
xor ebx, ebx
mov byte [esp + 0x8c8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4304f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0x1300
jne case.0x43051f.4881
mov eax, dword [esp + 0x30]
add eax, 0xffffecf0
cmp eax, 0x60
ja case.0x43051f.4881
movzx ecx, byte [eax + 0x430a54]
jmp dword [ecx*4 + 0x430a34]
push str.ThreadDispatchMess:_BackupFileInSR:_n
call fcn.00404c20
add esp, 4
cmp dword [esi + 0xc], 0x18
jne case.0x43051f.4881
mov edx, dword [esi + 0x20]
mov esi, dword [esi + 0x24]
mov dword [esp + 0x1c], ebx
lea ebx, [esp + 0x254]
lea edi, [esp + 0x34]
mov dword [esp + 0x24], edx
call fcn.00411ab0
test eax, eax
je 0x430578
mov ecx, dword [esp + 0x24]
mov eax, edi
push eax
push esi
push ecx
call fcn.00430c90
add esp, 0xc
mov dword [esp + 0x1c], 1
lea edx, [esp + 0x254]
lea ecx, [esp + 0x34]
call fcn.00402be0
push eax
push str.nCompress_:__d
call fcn.00404c20
add esp, 8
lea esi, [esp + 0x34]
call fcn.0043b0f0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov dword [eax + 0x10], edx
call fcn.0042ffd0
test al, al
jne case.0x43051f.4881
push str.ThreadDispatchMess:_answer_BackupFileInSR_failed
call fcn.00404c20
add esp, 4
jmp case.0x43051f.4881
push str.ThreadDispatchMess:_CheckIfFileChanged:_n
call fcn.00404c20
add esp, 4
cmp dword [esi + 0xc], 0x1010
jne case.0x43051f.4881
lea eax, [esp + 0x34]
push eax
lea ebx, [esi + 0x20]
mov edi, 1
call fcn.00430ac0
add esp, 4
test eax, eax
je 0x4306eb
lea ecx, [esp + 0x254]
push ecx
lea ebx, [esi + 0x820]
call fcn.00430ac0
add esp, 4
test eax, eax
je 0x4306eb
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x430643
push str.File_isnt_in_SandBox
call fcn.00404c20
add esp, 4
jmp 0x4306eb
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push eax
lea esi, [esp + 0x20]
call fcn.00403210
lea ecx, [esp + 0x258]
add esp, 4
push ecx
lea esi, [esp + 0x1c]
call fcn.00403210
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
add esp, 4
push esi
push ebx
push str.dwSrcCRC:__08X_dwDesCRC:__08X
call fcn.00404c20
add esp, 0xc
cmp ebx, esi
je 0x430692
mov edi, 0x5010
push str..xls
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4306e7
push str.file_is_excel
call fcn.00404c20
add esp, 4
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00401220
mov esi, eax
push esi
push str.nCmp_:__d
call fcn.00404c20
add esp, 0x10
neg esi
sbb esi, esi
and esi, 0xffffaff1
add esi, 0x5010
mov edi, esi
mov esi, dword [esp + 0x20]
push esi
mov dword [esi + 0x10], edi
call fcn.0042ffd0
test al, al
jne case.0x43051f.4881
push str.ThreadDispatchMess:_answer_CheckIfFileChanged_failed
call fcn.00404c20
add esp, 4
jmp case.0x43051f.4881
push str.ThreadDispatchMess:_DoCopyFile:_n
call fcn.00404c20
add esp, 4
cmp dword [esi + 0xc], 0x1010
jne case.0x43051f.4881
lea edx, [esp + 0x254]
push edx
lea ebx, [esi + 0x20]
xor edi, edi
call fcn.00430ac0
add esp, 4
test eax, eax
je 0x4307d3
lea eax, [esp + 0x34]
push eax
lea ebx, [esi + 0x820]
call fcn.00430ac0
add esp, 4
test eax, eax
je 0x4307d3
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x430772
mov edi, 0x5000
jmp 0x4307d3
lea edx, [esp + 0x34]
push edx
push str.szSrcPath:__s
call fcn.00404c20
lea eax, [esp + 0x25c]
push eax
push str.szDesPath:__s
call fcn.00404c20
add esp, 0x10
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x258]
call fcn.00431070
test eax, eax
je 0x4307bf
push str.Copied_file_successful
mov edi, 1
call fcn.00404c20
add esp, 4
jmp 0x4307d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copied_file_failed__Last_error_:__d
call fcn.00404c20
add esp, 8
push esi
mov dword [esi + 0x10], edi
call fcn.0042ffd0
test al, al
jne case.0x43051f.4881
push str.ThreadDispatchMess:_answer_DoCopyFile_failed
call fcn.00404c20
add esp, 4
jmp case.0x43051f.4881
push str.ThreadDispatchMess:_SaveBeforeQuit:_n
call fcn.00404c20
add esp, 4
cmp dword [esi + 0xc], 0x10
jne case.0x43051f.4881
lea ecx, [esp + 0x14]
xor edi, edi
call fcn.004244a0
push eax
lea edx, [esp + 0x478]
push str._s__sbq
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ebx, [esp + 0x474]
call fcn.00430be0
test eax, eax
je 0x430844
mov edi, 1
push esi
mov dword [esi + 0x10], edi
call fcn.0042ffd0
test al, al
jne case.0x43051f.4881
push str.ThreadDispatchMess:_answer_SaveBeforeQuit_failed
call fcn.00404c20
add esp, 4
jmp case.0x43051f.4881
push str.ThreadDispatchMess:_SaveBeforeQuitShare:_n
call fcn.00404c20
add esp, 4
cmp dword [esi + 0xc], 0x10
jne case.0x43051f.4881
lea eax, [esp + 0x34]
push eax
lea ebx, [esi + 0x18]
call fcn.00430ac0
add esp, 4
test eax, eax
je 0x4308d5
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
call fcn.004244a0
push eax
lea edx, [esp + 0x47c]
push str._s__sbqShare___s_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x484]
push eax
push str.ThreadDispatchMess:_SaveBeforeQuitShare:_szSRMgrPath_:_s
call fcn.00404c20
add esp, 0x18
lea ebx, [esp + 0x474]
call fcn.00430be0
push esi
call fcn.0042ffd0
test al, al
jne case.0x43051f.4881
push str.ThreadDispatchMess:_answer_SaveBeforeQuitShare_failed
call fcn.00404c20
add esp, 4
jmp case.0x43051f.4881
push str.ThreadDispatchMess:_AutoSave:_n
call fcn.00404c20
add esp, 4
cmp dword [esi + 0xc], 2
jne case.0x43051f.4881
add esi, 0x10
push esi
lea ecx, [esp + 0x38]
push 0x104
push ecx
call fcn.0043efc3
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x430927
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004066b0
add esp, 8
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
call fcn.004244a0
push eax
lea edx, [esp + 0x47c]
push str._s__autosave___s_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0xb08]
add esp, 0x10
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne case.0x43051f.4881
lea ebx, [esp + 0x474]
call fcn.00430be0
mov ecx, dword [esi + 0xb08]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp case.0x43051f.4881
push str.ThreadDispatchMess:_Sessions_Changed:_n
call fcn.00404c20
add esp, 4
cmp dword [esi + 0xc], ebx
jne case.0x43051f.4881
mov eax, dword [0x496730]
cmp eax, ebx
je case.0x43051f.4881
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x496730]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4309e3
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esp + 0x8c8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430a0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x8c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8a8]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 4