Function at 0x1004e410
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 0x1014ac35
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x5c0], eax
push ebx
push esi
push edi
mov eax, dword [0x10177024]
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.1004cee0
test eax, eax
je 0x1004eee5
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.1004d0c0
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.10060e20
add esp, 4
test al, al
je 0x1004e5d2
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x54]
push ecx
call fcn.10060ee0
add esp, 4
test al, al
je 0x1004e5d2
mov eax, dword [edi + 0x34]
call fcn.1007e270
test al, al
jne 0x1004e598
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov esi, dword [ebx]
push 0x2539
mov edi, str..UiRecord.cpp
add esi, 0xc
call fcn.1002f930
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.100036e0
lea esi, [esp + 0x30]
call fcn.10078ef0
mov eax, dword [esp + 0x28]
push eax
jmp 0x1004eedd
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.100036e0
lea esi, [esp + 0x30]
call fcn.10078ef0
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
jmp 0x1004eee7
mov eax, dword [esp + 0x14]
mov ecx, str.Files
call fcn.1007da90
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, str.Folders
mov dword [esp + 0x64], ebx
call fcn.1007da90
test ebx, ebx
mov dword [esp + 0x50], eax
je 0x1004e612
mov eax, ebx
call fcn.1002ffc0
test eax, eax
je 0x1004e612
mov edi, ebx
call fcn.1007d730
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x1004e630
mov eax, ebx
call fcn.1002ffc0
test eax, eax
je 0x1004e630
mov edi, ebx
call fcn.1007d730
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.1002a680
test eax, eax
jbe 0x1004ec08
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1004e698
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 0x1004e69e
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 0x1004eaf2
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 0x1004e6da
push eax
mov ecx, str.Folder
call fcn.1007db10
mov dword [esp + 0x1c], eax
jmp 0x1004e6e0
mov dword [esp + 0x1c], edi
mov eax, edi
cmp eax, edi
mov byte [esp + 0x5e0], 2
je 0x1004eea8
add eax, 0x2c
push 0x10155d50
mov dword [esp + 0x28], eax
call fcn.1007f0d0
cmp eax, edi
je 0x1004e711
mov edx, dword [esp + 0x48]
push edx
mov ecx, eax
call fcn.1007e8e0
mov eax, dword [esi + 4]
cmp eax, edi
je 0x1004e732
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 0x1004e738
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.1002fe80
mov eax, dword [esp + 0x28]
add esp, 4
push str.Path
call fcn.1007f0d0
test eax, eax
je 0x1004e794
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e770
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.100812d0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
call fcn.100035f0
cmp ebx, eax
jae 0x1004e859
mov eax, dword [esp + 0x40]
push ebx
call fcn.1005b170
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.10030700
mov ecx, dword [esp + 0x130]
add esp, 0x20
cmp dword [esp + 0x124], 0x10
jae 0x1004e820
lea ecx, [esp + 0x110]
mov edx, dword [esp + 0x1c]
push edx
mov eax, str.DisplayPath
call fcn.1007de40
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 0x1004e87a
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 0x1004e880
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.1002fe80
mov eax, dword [esp + 0x28]
add esp, 4
push str.FileInc
call fcn.1007f0d0
test eax, eax
je 0x1004e8e4
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e8c0
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.100812d0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e905
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 0x1004e90b
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.1002fe80
mov eax, dword [esp + 0x28]
add esp, 4
push str.FileExc
call fcn.1007f0d0
test eax, eax
je 0x1004e969
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e945
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.100812d0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e98a
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 0x1004e990
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.1002fe80
mov eax, dword [esp + 0x28]
add esp, 4
push str.FolderExc
call fcn.1007f0d0
test eax, eax
je 0x1004e9f4
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e9d0
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.100812d0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004ea15
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 0x1004ea1b
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.1007f0d0
test eax, eax
je 0x1004ea41
push edi
mov ecx, eax
call fcn.1007e8e0
mov eax, dword [esi + 4]
test eax, eax
je 0x1004ea62
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 0x1004ea68
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.1007f0d0
test eax, eax
je 0x1004ea8e
push edi
mov ecx, eax
call fcn.1007e8e0
mov eax, dword [esi + 4]
test eax, eax
je 0x1004eaaf
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 0x1004eab5
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.1007f0d0
test eax, eax
je 0x1004eadb
push edi
mov ecx, eax
call fcn.1007e8e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
call fcn.1007d760
add dword [esp + 0x48], 1
jmp 0x1004ebe6
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 0x1004eb1b
push eax
mov ecx, str.File
call fcn.1007db10
mov dword [esp + 0x1c], eax
jmp 0x1004eb21
mov dword [esp + 0x1c], edi
mov eax, edi
cmp eax, edi
mov byte [esp + 0x5e0], 2
je 0x1004ee7d
add eax, 0x2c
push 0x10155d50
call fcn.1007f0d0
cmp eax, edi
je 0x1004eb4e
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.1007e8e0
mov eax, dword [esi + 4]
cmp eax, edi
je 0x1004eb6f
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 0x1004eb75
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.1002fe80
mov eax, dword [esp + 0x20]
add esp, 4
push str.Path
add eax, 0x2c
call fcn.1007f0d0
test eax, eax
je 0x1004ebd4
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004ebb0
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.100812d0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
call fcn.1007d760
add dword [esp + 0x4c], 1
add dword [esp + 0x18], 0xf2a
add ebx, 1
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.1002a680
cmp ebx, eax
jb 0x1004e675
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 0x101527d8
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, 0x101599e4
call fcn.1007d420
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004eea8
cmp byte [esi + 0x44], 0
je 0x1004ee11
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 0x1004eea8
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.100036e0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x1004ee6c
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 0x1004e5bb
lea ebx, [esp + 0x54]
mov byte [esp + 0x5e0], 1
call fcn.100036e0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x1004eea1
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x28]
push eax
jmp 0x1004eed1
lea ebx, [esp + 0x54]
mov byte [esp + 0x5e0], 1
call fcn.100036e0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x1004eecc
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.10130e50
mov esp, ebp
pop ebp
ret 0xc