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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52cae1
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x588790]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push esi
push edi
mov eax, dword [0x588790]
xor eax, esp
push eax
lea eax, [esp + 0x3f8]
mov dword fs:[0], eax
mov edi, dword [sym.zSignInstall.exe_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath]
mov ebx, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], dx
cmp edi, ecx
jne 0x49da8f
mov edi, 0x53629c
mov ecx, edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x49da94
sub ecx, esi
sar ecx, 1
mov esi, ecx
cmp esi, 0x3f
jl 0x49dac5
lea eax, [esi + esi + 2]
push eax
push 0
mov dword [esp + 0x2c], 0
call fcn.00507c4b
add esp, 8
mov dword [esp + 0x24], eax
push esi
push edi
push eax
call fcn.0050754b
mov edx, dword [esp + 0x30]
xor ecx, ecx
add esp, 0xc
mov word [edx + esi*2], cx
mov dword [esp + 0x400], ecx
mov eax, dword [sym.zSignInstall.exe_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZip]
cmp word [eax], cx
jne 0x49dbd9
test ebx, ebx
je 0x49dafd
push ebx
lea ecx, [esp + 0x28]
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
mov eax, dword [esp + 0x24]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x49db48
mov dword [esp + 0x400], ebx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x49dea9
push eax
call fcn.0050567c
add esp, 4
jmp 0x49dea9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
jne 0x49db80
mov dword [esp + 0x400], ebx
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x49dea9
push eax
call fcn.0050567c
add esp, 4
jmp 0x49dea9
push edi
mov dword [esp + 0x1c], 0
call fcn.004ef56e
add esp, 4
mov ebx, eax
push 0
lea eax, [esp + 0x1c]
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 + 0x18], edi
je 0x49de85
push ebx
call fcn.00506929
add esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x400], 0xffffffff
jmp 0x49db2a
push eax
lea ecx, [esp + 0x28]
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 0x49dbf7
mov edi, dword [sym.zSignInstall.exe_void__DuiLib::CPaintManagerUI::m_hResourceZip]
jmp 0x49dccc
mov ecx, dword [sym.zSignInstall.exe_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZipPwd]
push 0xffffffffffffffff
lea edx, [esp + 0x13c]
xor eax, eax
push ecx
lea ecx, [esp + 0x13c]
mov dword [esp + 0x13c], edx
mov word [esp + 0x140], ax
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
mov byte [esp + 0x400], 1
mov eax, dword [esp + 0x134]
mov dword [esp + 0x18], eax
test eax, eax
je 0x49dc89
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 0x49dc89
push ebx
push 0
push esi
call fcn.00509940
mov edx, dword [esp + 0x24]
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]
jmp 0x49dc8b
xor esi, esi
mov eax, dword [esp + 0x24]
push 2
push 0
push eax
mov edi, esi
call fcn.00426ef0
add esp, 0xc
mov edi, eax
test esi, esi
je 0x49dcad
push esi
call fcn.00506929
add esp, 4
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x138]
cmp eax, ecx
je 0x49dcc8
push eax
call fcn.0050567c
add esp, 4
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x49dcea
mov dword [esp + 0x400], 0xffffffff
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
jmp 0x49db34
xor ecx, ecx
push 0xffffffffffffffff
lea eax, [esp + 0xb4]
mov word [esp + 0xb4], cx
push ebx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x20], 0
mov dword [esp + 0xb4], eax
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
push 0x537b74
push 0x536fac
lea ecx, [esp + 0xb4]
mov byte [esp + 0x408], 2
call sym.zSignInstall.exe_public:_int___thiscall_DuiLib::CDuiString::Replace_wchar_t_const___wchar_t_const__
cmp dword [edi], 1
je 0x49dd48
mov dword [0x58f510], 0x80000
jmp 0x49dd6d
mov ecx, dword [esp + 0xac]
mov edx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c4]
call fcn.004267d0
mov dword [0x58f510], eax
test eax, eax
je 0x49dd98
mov eax, dword [esp + 0xac]
lea edx, [esp + 0xb0]
cmp eax, edx
je 0x49dd88
push eax
call fcn.0050567c
add esp, 4
mov dword [esp + 0x400], 0xffffffff
jmp 0x49db2a
mov esi, dword [esp + 0x3e8]
mov dword [esp + 0x20], esi
test esi, esi
je 0x49dd6d
push esi
call fcn.004ef56e
add esp, 4
cmp dword [edi], 1
mov ebx, eax
mov dword [esp + 0x14], ebx
je 0x49ddc7
mov dword [0x58f510], 0x80000
jmp 0x49ddea
mov edx, dword [esp + 0x18]
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 0x49de2d
cmp eax, 0x600
je 0x49de2d
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 0x49de09
call fcn.00427400
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb0]
cmp eax, ecx
je 0x49dcd0
push eax
call fcn.0050567c
add esp, 4
jmp 0x49dcd0
cmp byte [sym.zSignInstall.exe_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x49de66
cmp dword [edi], 1
je 0x49de47
mov dword [0x58f510], 0x80000
jmp 0x49de66
mov esi, dword [edi + 4]
call fcn.00426e90
mov dword [0x58f510], eax
test esi, esi
je 0x49de5d
call fcn.00426fa0
push edi
call fcn.004ad85d
add esp, 4
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb0]
cmp eax, ecx
je 0x49de81
push eax
call fcn.0050567c
add esp, 4
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x400], 0xffffffff
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x49dea5
push eax
call fcn.0050567c
add esp, 4
test ebx, ebx
jne 0x49df1f
mov eax, dword [esp + 0x1c]
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 0x49df1f
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x49df1f
mov edi, eax
push edi
mov dword [esp + 0x20], ebx
call fcn.004ef56e
add esp, 4
push ebx
lea ecx, [esp + 0x20]
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 + 0x1c], edi
je 0x49df1f
mov edx, dword [esp + 0x14]
push edx
call fcn.00506929
add esp, 4
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x14]
xor eax, eax
test edi, edi
je 0x49df41
mov eax, dword [esp + 0x20]
push eax
push edi
call sym.zSignInstall.exe_public:_static_class_Gdiplus::Image____cdecl_DuiLib::CRenderEngine::GdiplusLoadImage_void___unsigned_int_
push edi
mov esi, eax
call fcn.00506929
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x3f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00503edf
mov esp, ebp
pop ebp
ret