Function at 0x1004e2c0
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 0x10144c05
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x5c0], eax
push ebx
push esi
push edi
mov eax, dword [0x10170024]
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.1004cd90
test eax, eax
je 0x1004ed95
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.1004cf70
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.10060970
add esp, 4
test al, al
je 0x1004e482
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x54]
push ecx
call fcn.10060a30
add esp, 4
test al, al
je 0x1004e482
mov eax, dword [edi + 0x34]
call fcn.1007df50
test al, al
jne 0x1004e448
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov esi, dword [ebx]
push 0x2539
mov edi, str..UiRecord.cpp
add esi, 0xc
call fcn.1002f7d0
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.100036b0
lea esi, [esp + 0x30]
call fcn.10029f90
mov eax, dword [esp + 0x28]
push eax
jmp 0x1004ed8d
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.100036b0
lea esi, [esp + 0x30]
call fcn.10029f90
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
jmp 0x1004ed97
mov eax, dword [esp + 0x14]
mov ecx, str.Files
call fcn.1007d770
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, str.Folders
mov dword [esp + 0x64], ebx
call fcn.1007d770
test ebx, ebx
mov dword [esp + 0x50], eax
je 0x1004e4c2
mov eax, ebx
call fcn.1002ff80
test eax, eax
je 0x1004e4c2
mov edi, ebx
call fcn.1007d410
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x1004e4e0
mov eax, ebx
call fcn.1002ff80
test eax, eax
je 0x1004e4e0
mov edi, ebx
call fcn.1007d410
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.1002a1b0
test eax, eax
jbe 0x1004eab8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1004e548
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 0x1004e54e
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 0x1004e9a2
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 0x1004e58a
push eax
mov ecx, str.Folder
call fcn.1007d7f0
mov dword [esp + 0x1c], eax
jmp 0x1004e590
mov dword [esp + 0x1c], edi
mov eax, edi
cmp eax, edi
mov byte [esp + 0x5e0], 2
je 0x1004ed58
add eax, 0x2c
push 0x1014fa20
mov dword [esp + 0x28], eax
call fcn.1007ed80
cmp eax, edi
je 0x1004e5c1
mov edx, dword [esp + 0x48]
push edx
mov ecx, eax
call fcn.1007e5c0
mov eax, dword [esi + 4]
cmp eax, edi
je 0x1004e5e2
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 0x1004e5e8
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.1002fd40
mov eax, dword [esp + 0x28]
add esp, 4
push str.Path
call fcn.1007ed80
test eax, eax
je 0x1004e644
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e620
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.10080f80
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
call fcn.1005b4e0
cmp ebx, eax
jae 0x1004e709
mov eax, dword [esp + 0x40]
push ebx
call fcn.1005b020
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.100305b0
mov ecx, dword [esp + 0x130]
add esp, 0x20
cmp dword [esp + 0x124], 0x10
jae 0x1004e6d0
lea ecx, [esp + 0x110]
mov edx, dword [esp + 0x1c]
push edx
mov eax, str.DisplayPath
call fcn.1007db20
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 0x1004e72a
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 0x1004e730
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.1002fd40
mov eax, dword [esp + 0x28]
add esp, 4
push str.FileInc
call fcn.1007ed80
test eax, eax
je 0x1004e794
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
lea ebx, [ebx]
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.10080f80
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e7b5
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 0x1004e7bb
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.1002fd40
mov eax, dword [esp + 0x28]
add esp, 4
push str.FileExc
call fcn.1007ed80
test eax, eax
je 0x1004e819
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e7f5
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.10080f80
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e83a
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 0x1004e840
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.1002fd40
mov eax, dword [esp + 0x28]
add esp, 4
push str.FolderExc
call fcn.1007ed80
test eax, eax
je 0x1004e8a4
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004e880
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.10080f80
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e8c5
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 0x1004e8cb
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.1007ed80
test eax, eax
je 0x1004e8f1
push edi
mov ecx, eax
call fcn.1007e5c0
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e912
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 0x1004e918
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.1007ed80
test eax, eax
je 0x1004e93e
push edi
mov ecx, eax
call fcn.1007e5c0
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e95f
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 0x1004e965
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.1007ed80
test eax, eax
je 0x1004e98b
push edi
mov ecx, eax
call fcn.1007e5c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
call fcn.1007d440
add dword [esp + 0x48], 1
jmp 0x1004ea96
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 0x1004e9cb
push eax
mov ecx, str.File
call fcn.1007d7f0
mov dword [esp + 0x1c], eax
jmp 0x1004e9d1
mov dword [esp + 0x1c], edi
mov eax, edi
cmp eax, edi
mov byte [esp + 0x5e0], 2
je 0x1004ed2d
add eax, 0x2c
push 0x1014fa20
call fcn.1007ed80
cmp eax, edi
je 0x1004e9fe
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.1007e5c0
mov eax, dword [esi + 4]
cmp eax, edi
je 0x1004ea1f
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 0x1004ea25
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.1002fd40
mov eax, dword [esp + 0x20]
add esp, 4
push str.Path
add eax, 0x2c
call fcn.1007ed80
test eax, eax
je 0x1004ea84
lea ecx, [esp + 0x144]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1004ea60
sub ecx, esi
lea edi, [eax + 0x18]
mov esi, ecx
lea ebx, [esp + 0x144]
call fcn.10080f80
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
call fcn.1007d440
add dword [esp + 0x4c], 1
add dword [esp + 0x18], 0xf2a
add ebx, 1
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.1002a1b0
cmp ebx, eax
jb 0x1004e525
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 0x1014c4a8
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, 0x101536b4
call fcn.1007d100
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004ed58
cmp byte [esi + 0x44], 0
je 0x1004ecc1
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 0x1004ed58
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.100036b0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x1004ed1c
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 0x1004e46b
lea ebx, [esp + 0x54]
mov byte [esp + 0x5e0], 1
call fcn.100036b0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x1004ed51
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x28]
push eax
jmp 0x1004ed81
lea ebx, [esp + 0x54]
mov byte [esp + 0x5e0], 1
call fcn.100036b0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x1004ed7c
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.1012d370
mov esp, ebp
pop ebp
ret 0xc