Function at 0x10075430
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x638]
mov ecx, 0x100ee4ec
mov esi, dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_void_]
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x640], 0x100ee4e0
mov dword [0x100ee4e0], 0
mov dword [0x100ee4e4], 0
mov dword [0x100ee4e8], 0
call esi
mov ecx, 0x100ee4f0
mov dword [ebp - 4], 0
call esi
mov byte [ebp - 4], 1
mov dword [0x100ee4f4], 0
mov dword [0x100ee4f8], 0
call fcn.10090770
mov dword [0x100ee4f4], eax
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 2
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x63c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx esi, ax
lea eax, [ebp - 0x628]
push 0x208
push 0
push eax
mov dword [ebp - 0x630], esi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
lea eax, [ebp - 0x628]
add esp, 0xc
push 0x104
push eax
push str._UserCommonDataoptionInfo.xml
call ebx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x634]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_Hnc::IniManager::constructor_unsigned_short_int_const__]
push 0x104
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push str._UserDataUserFontsPrivateFont130.dat
call ebx
mov eax, 0x412
cmp si, ax
jne 0x1007558e
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._CommonFontDBPrivateFont_ko_KR.dat
jmp 0x10075613
push str.value
push str.PrivateLabel
push str.OptionInfo
push str.Common
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x634]
call dword [sym.imp.HncFoundation.dll_public:_class_CHncStringW___thiscall_Hnc::IniManager::GetValue_unsigned_short_int_const___unsigned_short_int_const___unsigned_short_int_const___unsigned_short_int_const__]
mov ecx, 0x100c5ce0
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100755e6
test dx, dx
je 0x100755e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100755e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100755c0
xor esi, esi
jmp 0x100755eb
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x62c]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
lea eax, [ebp - 0x218]
push 0x104
push eax
test esi, esi
jne 0x1007560e
push str._CommonFontDBPrivateFont_ja_JP_sourcenext.dat
jmp 0x10075613
push str._CommonFontDBPrivateFont_en_US.dat
call ebx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.HncFoundation.dll_HncFileExist]
mov ebx, dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__]
test eax, eax
je 0x10075709
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea eax, [ebp - 0x420]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call esi
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x218]
push 0x80000000
push eax
call esi
mov edi, eax
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x638], edi
test eax, eax
je 0x10075709
cmp eax, 0xffffffff
je 0x10075709
test edi, edi
je 0x10075709
cmp edi, 0xffffffff
je 0x10075709
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x644]
push ecx
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x644]
push eax
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x62c]
push eax
call esi
push dword [ebp - 0x638]
call esi
xor edx, edx
cmp ebx, edi
mov ebx, dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__]
sete dl
test edx, edx
je 0x10075709
lea eax, [ebp - 0x420]
mov dword [0x100ee4e8], 1
push eax
mov ecx, 0x100ee4ec
call ebx
mov edi, dword [sym.imp.HncFoundation.dll_HncFileExist]
mov dword [ebp - 0x63c], 1
jmp 0x100757b9
mov edi, dword [sym.imp.HncFoundation.dll_HncFileExist]
lea eax, [ebp - 0x218]
push eax
call edi
cmp eax, 1
jne 0x1007575c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.HncFoundation.dll_HncPathCreate]
test eax, eax
je 0x100757b9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.HncFoundation.dll_HncCopyFile]
test eax, eax
je 0x100757b9
mov dword [0x100ee4e8], 1
lea eax, [ebp - 0x420]
jmp 0x100757b1
push 0x100c5df0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x62c], 0
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov eax, dword [ebp - 0x62c]
add esp, 0xc
test eax, eax
jne 0x10075794
lea eax, [ebp - 0x420]
jmp 0x100757b1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add esp, 8
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x100ee4ec
call ebx
mov eax, 0x412
cmp word [ebp - 0x630], ax
jne 0x100757dd
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._CommonFontDBPrivateFontList.ini
jmp 0x10075863
push str.value
push str.PrivateLabel
push str.OptionInfo
push str.Common
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x634]
call dword [sym.imp.HncFoundation.dll_public:_class_CHncStringW___thiscall_Hnc::IniManager::GetValue_unsigned_short_int_const___unsigned_short_int_const___unsigned_short_int_const___unsigned_short_int_const__]
mov ecx, 0x100c5ce0
mov eax, dword [eax]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10075836
test dx, dx
je 0x10075832
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10075836
add eax, 4
add ecx, 4
test dx, dx
jne 0x10075810
xor esi, esi
jmp 0x1007583b
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x630]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
lea eax, [ebp - 0x218]
push 0x104
push eax
test esi, esi
jne 0x1007585e
push str._CommonFontDBPrivateFontList_sourcenext.ini
jmp 0x10075863
push str._CommonFontDBPrivateFontList_enu.ini
mov eax, dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
call eax
lea eax, [ebp - 0x218]
push eax
call edi
cmp eax, 1
jne 0x1007588b
mov dword [0x100ee4e4], eax
mov ecx, 0x100ee4f0
lea eax, [ebp - 0x218]
push eax
call ebx
push dword [ebp - 0x63c]
call fcn.10075d90
lea ecx, [ebp - 0x634]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_Hnc::IniManager::destructor_void_]
mov eax, 0x100ee4e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
ret