Function at 0x447830
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52cb31
mov eax, dword fs:[0]
push eax
sub esp, 0x3f0
mov eax, dword [0x588790]
xor eax, esp
mov dword [esp + 0x3e8], eax
push ebx
push esi
push edi
mov eax, dword [0x588790]
xor eax, esp
push eax
lea eax, [esp + 0x400]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
xor edx, edx
mov word [esp + 0x30], cx
mov ecx, dword [sym.zSignInstall.exe_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
mov edi, ecx
cmp ecx, edx
jne 0x4478a7
mov edi, 0x53629c
mov ecx, edi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4478b0
sub ecx, esi
sar ecx, 1
mov esi, ecx
cmp esi, 0x3f
jl 0x4478e1
lea edx, [esi + esi + 2]
push edx
push 0
mov dword [esp + 0x34], 0
call fcn.00507c4b
add esp, 8
mov dword [esp + 0x2c], eax
push esi
push edi
push eax
call fcn.0050754b
mov ecx, dword [esp + 0x38]
xor eax, eax
add esp, 0xc
mov word [ecx + esi*2], ax
mov dword [esp + 0x408], eax
mov eax, dword [sym.zSignInstall.exe_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZip]
cmp word [eax], 0
jne 0x447a19
mov eax, dword [esp + 0x20]
test eax, eax
je 0x44791e
push eax
lea ecx, [esp + 0x30]
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
mov edx, dword [esp + 0x2c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44796b
mov dword [esp + 0x408], 0xffffffff
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x447cfc
push eax
call fcn.0050567c
add esp, 4
jmp 0x447cfc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4479a7
mov dword [esp + 0x408], 0xffffffff
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x447cfc
push eax
call fcn.0050567c
add esp, 4
jmp 0x447cfc
push edi
mov dword [esp + 0x20], 0
call fcn.004ef56e
add esp, 4
mov ebx, eax
push 0
lea eax, [esp + 0x20]
push eax
push edi
push ebx
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], edi
je 0x447cd0
push ebx
call fcn.00506929
mov dword [esp + 0x40c], 0xffffffff
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
add esp, 4
mov dword [esp + 0x14], 0
cmp eax, ecx
je 0x447cf8
push eax
call fcn.0050567c
add esp, 4
jmp 0x447cf8
push eax
lea ecx, [esp + 0x30]
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
cmp byte [sym.zSignInstall.exe_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
je 0x447a37
mov edi, dword [sym.zSignInstall.exe_void__DuiLib::CPaintManagerUI::m_hResourceZip]
jmp 0x447b10
mov ecx, dword [sym.zSignInstall.exe_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZipPwd]
push 0xffffffffffffffff
lea edx, [esp + 0x144]
xor eax, eax
push ecx
lea ecx, [esp + 0x144]
mov dword [esp + 0x144], edx
mov word [esp + 0x148], ax
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
mov byte [esp + 0x408], 1
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x447ad1
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.004ef56e
mov esi, eax
add esp, 4
test esi, esi
je 0x447acd
push ebx
push 0
push esi
call fcn.00509940
mov edx, dword [esp + 0x28]
add esp, 0xc
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [esp + 0x18]
jmp 0x447ad3
mov ebx, dword [esp + 0x18]
xor esi, esi
mov eax, dword [esp + 0x2c]
push 2
push 0
push eax
mov edi, esi
call fcn.00426ef0
add esp, 0xc
mov edi, eax
test esi, esi
je 0x447af5
push esi
call fcn.00506929
add esp, 4
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x140]
cmp eax, ecx
je 0x447b10
push eax
call fcn.0050567c
add esp, 4
test edi, edi
je 0x44797e
mov edx, dword [esp + 0x20]
xor ecx, ecx
push 0xffffffffffffffff
lea eax, [esp + 0xbc]
mov word [esp + 0xbc], cx
push edx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x24], 0
mov dword [esp + 0xbc], eax
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
push 0x537b74
push 0x536fac
lea ecx, [esp + 0xbc]
mov byte [esp + 0x410], 2
call sym.zSignInstall.exe_public:_int___thiscall_DuiLib::CDuiString::Replace_wchar_t_const___wchar_t_const__
cmp dword [edi], 1
je 0x447b7a
mov dword [0x58f510], 0x80000
jmp 0x447b9f
mov ecx, dword [esp + 0xb4]
mov edx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x1cc]
call fcn.004267d0
mov dword [0x58f510], eax
test eax, eax
je 0x447bc3
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0xb8]
cmp eax, edx
je 0x447942
push eax
call fcn.0050567c
add esp, 4
jmp 0x447942
mov esi, dword [esp + 0x3f0]
mov dword [esp + 0x24], esi
test esi, esi
je 0x447b9f
push esi
call fcn.004ef56e
add esp, 4
cmp dword [edi], 1
mov ebx, eax
mov dword [esp + 0x14], ebx
je 0x447bf2
mov dword [0x58f510], 0x80000
jmp 0x447c15
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
push 3
push esi
push edx
push eax
mov ecx, ebx
call fcn.004269f0
mov dword [0x58f510], eax
test eax, eax
je 0x447c78
cmp eax, 0x600
je 0x447c78
push ebx
call fcn.00506929
add esp, 4
cmp byte [sym.zSignInstall.exe_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
mov dword [esp + 0x14], 0
jne 0x447c34
call fcn.00427400
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0xb8]
cmp eax, ecx
je 0x447c4f
push eax
call fcn.0050567c
add esp, 4
mov dword [esp + 0x408], 0xffffffff
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x447cf8
push eax
call fcn.0050567c
add esp, 4
jmp 0x447cf8
cmp byte [sym.zSignInstall.exe_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x447cb1
cmp dword [edi], 1
je 0x447c92
mov dword [0x58f510], 0x80000
jmp 0x447cb1
mov esi, dword [edi + 4]
call fcn.00426e90
mov dword [0x58f510], eax
test esi, esi
je 0x447ca8
call fcn.00426fa0
push edi
call fcn.004ad85d
add esp, 4
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0xb8]
cmp eax, ecx
je 0x447ccc
push eax
call fcn.0050567c
add esp, 4
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x408], 0xffffffff
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x447cf0
push eax
call fcn.0050567c
add esp, 4
test ebx, ebx
jne 0x447d7c
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x447d80
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x24], eax
test eax, eax
je 0x447d80
mov edi, eax
push edi
mov dword [esp + 0x24], 0
call fcn.004ef56e
add esp, 4
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], edi
je 0x447d80
mov edx, dword [esp + 0x14]
push edx
call fcn.00506929
add esp, 4
mov dword [esp + 0x14], 0
jmp 0x447d80
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push esi
mov edi, eax
call fcn.00506929
mov eax, dword [ebx + 0x500]
inc dword [ebx + 0x4fc]
add esp, 4
cmp dword [ebx + 0x4fc], eax
jl 0x447de9
lea esi, [eax + eax]
test esi, esi
jne 0x447dc2
mov esi, 0xb
mov eax, dword [ebx + 0x4f8]
lea edx, [esi*4]
push edx
push eax
call fcn.00507c4b
add esp, 8
test eax, eax
je 0x447e1f
mov dword [ebx + 0x500], esi
mov dword [ebx + 0x4f8], eax
mov ecx, dword [ebx + 0x4fc]
mov edx, dword [ebx + 0x4f8]
mov dword [edx + ecx*4 - 4], edi
mov ecx, dword [esp + 0x400]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
call fcn.00503edf
mov esp, ebp
pop ebp
ret 4
dec dword [ebx + 0x4fc]
jmp 0x447df9