Function at 0x434640
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49194b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x204], esi
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x43468b
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 0
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x4346b5
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20c], ebx
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.jansson.dll_json_object_get]
push 0x4a731c
push dword [esi + 0xad8]
call edi
push eax
call dword [sym.imp.jansson.dll_json_string_value]
add esp, 0xc
test eax, eax
je 0x434777
lea ecx, [ebp - 0x168]
push 0xfde9
mov dword [ebp - 0x16c], ecx
lea ecx, [ebp - 0x16c]
push eax
call fcn.004038b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x16c]
test edx, edx
jne 0x43471b
xor ecx, ecx
jmp 0x434735
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434720
sub ecx, edi
mov edi, dword [sym.imp.jansson.dll_json_object_get]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20c]
call fcn.004046a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
mov eax, dword [ebp - 0x16c]
cmp eax, ecx
je 0x43475f
push eax
call fcn.00471958
add esp, 4
lea eax, [ebp - 0x20c]
lea ecx, [esi + 0xad4]
push eax
call fcn.0040a720
mov ebx, dword [ebp - 0x20c]
push 0x4a7790
push dword [esi + 0xad8]
call edi
push eax
call dword [sym.imp.jansson.dll_json_string_value]
add esp, 0xc
test eax, eax
je 0x43481b
lea ecx, [ebp - 0x168]
push 0xfde9
mov dword [ebp - 0x16c], ecx
lea ecx, [ebp - 0x16c]
push eax
call fcn.004038b0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x16c]
test edx, edx
jne 0x4347c5
xor ecx, ecx
jmp 0x4347df
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4347d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x214]
call fcn.004046a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
mov eax, dword [ebp - 0x16c]
cmp eax, ecx
je 0x434809
push eax
call fcn.00471958
add esp, 4
lea eax, [ebp - 0x214]
lea ecx, [esi + 0xad4]
push eax
call fcn.0040a720
lea eax, [ebp - 0x234]
push eax
push 0x4a4a10
lea eax, [ebp - 0x22c]
push eax
push 0x4a7314
lea eax, [ebp - 0x220]
push eax
push 0x4a7318
push str.s:s__s:I__s:I
push dword [esi + 0xad8]
call dword [sym.imp.jansson.dll_json_unpack]
add esp, 0x20
or edi, 0xffffffff
test eax, eax
js 0x434df2
add esi, 0x30
push str.btn_sys_close
mov ecx, esi
mov dword [ebp - 0x1fc], esi
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
test eax, eax
je 0x434884
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 0xd8]
push 0
push 0x4cc628
push 0x4cc648
push 0
push str.source_name
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push eax
call fcn.0048e49a
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4348c1
mov edx, dword [esi]
mov ecx, esi
push ebx
call dword [edx + 0x2c]
mov edx, dword [esi]
mov ecx, esi
push ebx
call dword [edx + 0x9c]
push 0xfde9
push dword [ebp - 0x220]
lea eax, [ebp - 0x168]
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x16c], eax
call fcn.004038b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x210]
push dword [ebp - 0x16c]
call fcn.00403eb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x168]
mov eax, dword [ebp - 0x16c]
cmp eax, ecx
je 0x434915
push eax
call fcn.00471958
add esp, 4
mov ecx, dword [ebp - 0x1fc]
push 0
push 0x4cc628
push 0x4cc648
push 0
push str.vir_name
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push eax
call fcn.0048e49a
mov esi, eax
add esp, 0x14
test esi, esi
je 0x434960
mov edx, dword [esi]
mov ecx, esi
push dword [ebp - 0x210]
call dword [edx + 0x2c]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x210]
call dword [eax + 0x9c]
push dword [ebp - 0x228]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x22c]
call fcn.00408b50
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x24], ax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
movq qword [ebp - 0x22], xmm0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x4349a5
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [ebp - 0x44], xmm0
mov esi, dword [ebp - 0x1fc]
mov ecx, esi
push 0
push 0x4cc628
push 0x4cc648
push 0
push str.qua_time
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push eax
call fcn.0048e49a
add esp, 0x14
mov dword [ebp - 0x200], eax
test eax, eax
je 0x434a56
push str._x__H:_M
lea ecx, [ebp - 0x1f8]
call fcn.00403eb0
lea eax, [ebp - 0x1f8]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x44]
call fcn.00408cc0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x200]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x208]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434a35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x1f8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434a56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
xor ecx, ecx
mov edi, dword [ebp - 0x234]
mov eax, 0x4ca050
nop dword [eax]
cmp dword [eax], edi
jne 0x434a7d
cmp dword [eax + 4], edx
je 0x434b5d
add eax, 0x10
inc ecx
cmp eax, 0x4ca0c0
jl 0x434a70
xor edx, edx
lea ecx, [ebp - 0x1f4]
call fcn.0042b410
push 0
push 0x4cc628
push 0x4cc648
push 0
mov byte [ebp - 4], 9
mov ecx, esi
mov edi, dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push str.file_type
call edi
push eax
call fcn.0048e49a
add esp, 0x14
mov dword [ebp - 0x208], eax
test eax, eax
je 0x434ae7
mov esi, dword [eax]
lea ecx, [ebp - 0x1f4]
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
mov ecx, dword [ebp - 0x208]
push eax
call dword [esi + 0x2c]
mov esi, dword [ebp - 0x1fc]
push 0
push 0x4cc628
push 0x4cc648
push 0
push str.aim_name
mov ecx, esi
call edi
push eax
call fcn.0048e49a
mov esi, eax
add esp, 0x14
test esi, esi
je 0x434b30
mov edi, dword [ebp - 0x204]
mov ecx, esi
mov edx, dword [esi]
push dword [edi + 0xad4]
call dword [edx + 0x2c]
mov eax, dword [esi]
mov ecx, esi
push dword [edi + 0xad4]
call dword [eax + 0x9c]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov byte [ebp - 4], 0xa
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x434b6b
push 0x80004005
call fcn.00404ad0
shl ecx, 4
mov edx, dword [ecx + 0x4ca058]
jmp 0x434a8a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x200], esi
mov byte [ebp - 4], 0xb
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x434b92
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1f8], edi
push 0
push 0x80
push 3
push 0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x204]
push 0
push Ordinal_1
push dword [eax + 0xad4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x434bde
call fcn.00404b90
test eax, eax
js 0x434d13
xor esi, esi
jmp 0x434be6
mov esi, eax
mov dword [ebp - 0x21c], esi
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movups xmm0, xmmword [ebp - 0x64]
xor eax, eax
mov word [ebp - 0x34], ax
mov dword [ebp - 0x2a], eax
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x54]
movups xmmword [ebp - 0x54], xmm0
push eax
xorps xmm0, xmm0
push 0
movq qword [ebp - 0x32], xmm0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x434c3c
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [ebp - 0x54], xmm0
push str._x__H:_M
lea ecx, [ebp - 0x204]
call fcn.00403eb0
lea eax, [ebp - 0x204]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408cc0
push eax
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 0xe
call fcn.0040a720
mov byte [ebp - 4], 0xd
or edi, 0xffffffff
mov edx, dword [ebp - 0x208]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434c9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, edi
mov edx, dword [ebp - 0x204]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434cbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x238]
shrd ecx, eax, 0xa
shr eax, 0xa
push eax
push ecx
lea eax, [ebp - 0x1f8]
push str._I64iKB
push eax
call fcn.00409370
add esp, 0x10
test esi, esi
je 0x434d07
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0
mov edi, dword [ebp - 0x1f8]
mov esi, dword [ebp - 0x200]
mov ecx, dword [ebp - 0x1fc]
push 0
push 0x4cc628
push 0x4cc648
push 0
push str.crea_time
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push eax
call fcn.0048e49a
add esp, 0x14
test eax, eax
je 0x434d47
mov edx, dword [eax]
mov ecx, eax
push esi
call dword [edx + 0x2c]
mov ecx, dword [ebp - 0x1fc]
push 0
push 0x4cc628
push 0x4cc648
push 0
push str.file_si
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push eax
call fcn.0048e49a
add esp, 0x14
test eax, eax
je 0x434d7b
mov edx, dword [eax]
mov ecx, eax
push edi
call dword [edx + 0x2c]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0xb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434d99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x434db4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x434dc5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1f4]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x210]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434df2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x434e0d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x214]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x434e2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 4