Function at 0x1004dc50
Capabilities:
Access peb ldr_data
Delete file
Enumerate pe sections
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101178e5
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x5c0], eax
push ebx
push esi
push edi
mov eax, dword [0x1013b024]
xor eax, esp
push eax
lea eax, [esp + 0x5d8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, ecx
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
mov dword [esp + 0x40], eax
push ebx
lea eax, [esp + 0xf0]
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], 0
call edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
push edi
lea edx, [esp + 0x28]
mov dword [ecx + 0xc], eax
call fcn.1004c720
test eax, eax
je 0x1004e725
mov edx, dword [edi]
mov eax, dword [edx + 0x15c]
push ebx
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x5e0], 0
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.1004c900
xor eax, eax
add esp, 8
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x5e4], 2
mov edx, dword [edi]
mov edx, dword [edx + 0x54]
lea ecx, [esp + 0x34]
push ecx
push ebx
mov ecx, edi
call edx
lea eax, [esp + 0x30]
push eax
mov eax, esi
call fcn.10060a70
add esp, 4
test al, al
je 0x1004de12
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x54]
push ecx
call fcn.10060b30
add esp, 4
test al, al
je 0x1004de12
mov eax, dword [edi + 0x34]
call fcn.1007e0d0
test al, al
jne 0x1004ddd8
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov esi, dword [ebx]
push 0x2590
mov edi, str.E:AMWork_branchesBRCloudv2_srcUiLogicUiRecord.cpp
add esi, 0xc
call fcn.1002ef80
mov edx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_save_file
push ebx
call edx
add esp, 0xc
lea ebx, [esp + 0x54]
mov byte [esp + 0x5e0], 1
call fcn.100035d0
lea esi, [esp + 0x30]
call fcn.10029ce0
mov eax, dword [esp + 0x28]
push eax
jmp 0x1004e71d
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
lea ebx, [esp + 0x54]
mov byte [esp + 0x5e0], 1
call fcn.100035d0
lea esi, [esp + 0x30]
call fcn.10029ce0
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
jmp 0x1004e727
mov eax, dword [esp + 0x14]
mov ecx, str.Files
call fcn.1007d8b0
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, str.Folders
mov dword [esp + 0x64], ebx
call fcn.1007d8b0
test ebx, ebx
mov dword [esp + 0x50], eax
je 0x1004de52
mov eax, ebx
call fcn.1002f710
test eax, eax
je 0x1004de52
mov edi, ebx
call fcn.1007d550
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x1004de70
mov eax, ebx
call fcn.1002f710
test eax, eax
je 0x1004de70
mov edi, ebx
call fcn.1007d550
mov edi, dword [esp + 0x44]
push 0x1ff
mov eax, 1
lea edx, [esp + 0x149]
push 0
push edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov byte [esp + 0x150], 0
call sub.MSVCR80.dll_memset
xor ebx, ebx
add esp, 0xc
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.100299f0
test eax, eax
jbe 0x1004e448
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1004ded8
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x10e1cc09
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1004dede
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
cmp word [ecx + eax], di
push 0x50
je 0x1004e332
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x5e0], 3
je 0x1004df1a
push eax
mov ecx, str.Folder
call fcn.1007d930
mov dword [esp + 0x1c], eax
jmp 0x1004df20
mov dword [esp + 0x1c], edi
mov eax, edi
cmp eax, edi
mov byte [esp + 0x5e0], 2
je 0x1004e6e8
add eax, 0x2c
push 0x10121620
mov dword [esp + 0x28], eax
call fcn.1007ef00
cmp eax, edi
je 0x1004df51
mov edx, dword [esp + 0x48]
push edx
mov ecx, eax
call fcn.1007e740
mov eax, dword [esi + 4]
cmp eax, edi
je 0x1004df72
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x10e1cc09
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1004df78
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x144]
push eax
lea edi, [edx + ecx + 0x12]
call fcn.1002f4d0
mov eax, dword [esp + 0x28]
add esp, 4
push str.Path
call fcn.1007ef00
test eax, eax
je 0x1004dfd4
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004dfb0
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.1007f070
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
call fcn.100034e0
cmp ebx, eax
jae 0x1004e099
mov eax, dword [esp + 0x40]
push ebx
call fcn.1005b3e0
push eax
lea ecx, [esp + 0x12c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x10c]
mov byte [esp + 0x5e0], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0xfde9
sub esp, 0x1c
mov byte [esp + 0x600], 5
lea eax, [esp + 0x148]
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
lea edi, [esp + 0x130]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
call fcn.1002fd40
mov ecx, dword [esp + 0x130]
add esp, 0x20
cmp dword [esp + 0x124], 0x10
jae 0x1004e060
lea ecx, [esp + 0x110]
mov edx, dword [esp + 0x1c]
push edx
mov eax, str.DisplayPath
call fcn.1007dca0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x5e0], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x128]
mov byte [esp + 0x5e0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e0ba
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x10e1cc09
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1004e0c0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x144]
push eax
lea edi, [edx + ecx + 0x812]
call fcn.1002f4d0
mov eax, dword [esp + 0x28]
add esp, 4
push str.FileInc
call fcn.1007ef00
test eax, eax
je 0x1004e124
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e100
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.1007f070
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e145
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x10e1cc09
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1004e14b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x144]
push eax
lea edi, [edx + ecx + 0xa1a]
call fcn.1002f4d0
mov eax, dword [esp + 0x28]
add esp, 4
push str.FileExc
call fcn.1007ef00
test eax, eax
je 0x1004e1a9
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e185
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.1007f070
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e1ca
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x10e1cc09
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1004e1d0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x144]
push eax
lea edi, [edx + ecx + 0xc22]
call fcn.1002f4d0
mov eax, dword [esp + 0x28]
add esp, 4
push str.FolderExc
call fcn.1007ef00
test eax, eax
je 0x1004e234
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e210
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.1007f070
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e255
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x10e1cc09
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1004e25b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
movzx edi, word [ecx + eax + 2]
mov eax, dword [esp + 0x24]
push str.NotBackupSub
call fcn.1007ef00
test eax, eax
je 0x1004e281
push edi
mov ecx, eax
call fcn.1007e740
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e2a2
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x10e1cc09
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1004e2a8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
movzx edi, word [eax + edx + 6]
mov eax, dword [esp + 0x24]
push str.NotbackupSystem
call fcn.1007ef00
test eax, eax
je 0x1004e2ce
push edi
mov ecx, eax
call fcn.1007e740
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e2ef
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x10e1cc09
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1004e2f5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
movzx edi, word [edx + ecx + 4]
push str.NotBackupHideFile
call fcn.1007ef00
test eax, eax
je 0x1004e31b
push edi
mov ecx, eax
call fcn.1007e740
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
call fcn.1007d580
add dword [esp + 0x48], 1
jmp 0x1004e426
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x68], eax
cmp eax, edi
mov byte [esp + 0x5e0], 6
je 0x1004e35b
push eax
mov ecx, str.File
call fcn.1007d930
mov dword [esp + 0x1c], eax
jmp 0x1004e361
mov dword [esp + 0x1c], edi
mov eax, edi
cmp eax, edi
mov byte [esp + 0x5e0], 2
je 0x1004e6bd
add eax, 0x2c
push 0x10121620
call fcn.1007ef00
cmp eax, edi
je 0x1004e38e
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.1007e740
mov eax, dword [esi + 4]
cmp eax, edi
je 0x1004e3af
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x10e1cc09
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1004e3b5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x144]
push edx
lea edi, [ecx + eax + 0x12]
call fcn.1002f4d0
mov eax, dword [esp + 0x20]
add esp, 4
push str.Path
add eax, 0x2c
call fcn.1007ef00
test eax, eax
je 0x1004e414
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e3f0
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.1007f070
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
call fcn.1007d580
add dword [esp + 0x4c], 1
add dword [esp + 0x18], 0xf2a
add ebx, 1
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.100299f0
cmp ebx, eax
jb 0x1004deb5
mov edi, dword [esp + 0x44]
push 0x7e
lea ecx, [esp + 0x34a]
push 0
push ecx
mov word [esp + 0x350], 0
call sub.MSVCR80.dll_memset
mov esi, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
add esp, 0xc
push esi
lea eax, [esp + 0xe0]
push eax
mov ecx, edi
call edx
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push esi
lea ecx, [esp + 0xa0]
push ecx
mov ecx, edi
call edx
movzx eax, byte [eax + 0xf]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
push eax
push esi
lea eax, [esp + 0xd4]
push eax
mov ecx, edi
call edx
movzx eax, byte [eax + 0xe]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
push eax
push esi
lea eax, [esp + 0xc8]
push eax
mov ecx, edi
call edx
movzx eax, byte [eax + 0xd]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
push eax
push esi
lea eax, [esp + 0x10c]
push eax
mov ecx, edi
call edx
movzx eax, byte [eax + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
push eax
push esi
lea eax, [esp + 0x80]
push eax
mov ecx, edi
call edx
movzx eax, byte [eax + 0xb]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
push eax
push esi
lea eax, [esp + 0x94]
push eax
mov ecx, edi
call edx
movzx eax, byte [eax + 0xa]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
push eax
push esi
lea eax, [esp + 0xa8]
push eax
mov ecx, edi
call edx
movzx eax, byte [eax + 9]
mov edx, dword [edi]
push eax
push esi
mov edx, dword [edx + 0x30]
lea eax, [esp + 0xcc]
push eax
mov ecx, edi
call edx
movzx eax, byte [eax + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
push eax
push esi
lea eax, [esp + 0x14c]
push eax
mov ecx, edi
call edx
movzx eax, word [eax + 6]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
push eax
push esi
lea eax, [esp + 0x134]
push eax
mov ecx, edi
call edx
movzx eax, word [eax + 4]
mov ecx, dword [ebx]
push eax
push ecx
lea edx, [esp + 0x370]
push 0x1011e168
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
push 0x206
lea eax, [esp + 0x3ca]
push 0
push eax
mov word [esp + 0x3d0], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x3c4]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.AomeiBR
lea edx, [esp + 0x3c8]
push edx
call esi
lea eax, [esp + 0x344]
push eax
lea ecx, [esp + 0x3c8]
push ecx
call esi
push str..meta
lea edx, [esp + 0x3c8]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [esp + 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [edi + 0x34]
mov eax, dword [esi + 0x20]
add eax, 8
push eax
mov ebx, 0x1012537c
call fcn.1007d240
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004e6e8
cmp byte [esi + 0x44], 0
je 0x1004e651
push ebx
push 0xef
call dword [sym.imp.MSVCR80.dll_fputc]
push ebx
push 0xbb
call dword [sym.imp.MSVCR80.dll_fputc]
push ebx
push 0xbf
call dword [sym.imp.MSVCR80.dll_fputc]
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0
push ebx
mov ecx, esi
call eax
push ebx
call dword [sym.imp.MSVCR80.dll_ferror]
add esp, 4
test eax, eax
push ebx
sete byte [esp + 0x27]
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
cmp byte [esp + 0x23], 0
je 0x1004e6e8
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
lea ebx, [esp + 0x54]
mov byte [esp + 0x5e0], 1
call fcn.100035d0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x1004e6ac
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
jmp 0x1004ddfb
lea ebx, [esp + 0x54]
mov byte [esp + 0x5e0], 1
call fcn.100035d0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x1004e6e1
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x28]
push eax
jmp 0x1004e711
lea ebx, [esp + 0x54]
mov byte [esp + 0x5e0], 1
call fcn.100035d0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x1004e70c
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x5d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c0]
xor ecx, esp
call fcn.1010dc50
mov esp, ebp
pop ebp
ret 0xc