Function at 0x4a4940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f802e
mov eax, dword fs:[0]
push eax
sub esp, 0xaf0
mov eax, dword [0x6b000c]
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 ebx, ecx
mov dword [ebp - 0xaa0], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00588800
push 0x1011
mov dword [ebp - 0xa98], 0
mov dword [ebp - 0xa8c], 0
mov dword [ebp - 0xa9c], 0
call fcn.00560596
push 0x4004
mov dword [ebp - 0xaf4], eax
call fcn.00560596
push 0x4404
mov dword [ebp - 0xae8], eax
call fcn.00560596
push 0x4004
mov dword [ebp - 0xae4], eax
call fcn.00560596
add esp, 0x1c
mov dword [ebp - 0xae0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebx + 0x918]
mov eax, dword [esi + 0xb44]
mov dword [esi + 0xadc], 0xffffffff
mov dword [esi + 0xb3c], 0
mov dword [esi + 0xae0], 0
mov dword [esi + 0xb5c], 0
test eax, eax
je 0x4a4a3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xb44], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
push 3
push 0
push 3
push SysReAllocString
push dword [ebx + 0x910]
call esi
mov edi, eax
mov dword [ebp - 0xaa4], edi
cmp edi, 0xffffffff
je 0x4a4e90
cmp dword [ebx + 0x918], 0
je 0x4a4e90
push 0
lea eax, [ebp - 0xab8]
mov dword [ebp - 0xabc], 9
push eax
push 9
push edi
mov dword [ebp - 0xab8], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xa90]
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4f7b
push 0
push 1
push 3
push 0
push 3
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call esi
mov ecx, dword [ebx + 0x918]
mov dword [ecx + 0xb94], eax
mov eax, dword [ebx + 0x918]
cmp dword [eax + 0xb94], 0xffffffff
jne 0x4a4b27
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xaac], esp
push 0x6b1070
call fcn.00420d90
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebx + 4]
call fcn.004e1110
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push edi
call eax
jmp 0x4a4f71
push 0
lea eax, [ebp - 0xa90]
xorps xmm0, xmm0
push eax
push 8
lea eax, [ebp - 0xafc]
movlpd qword [ebp - 0xafc], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xa90]
push eax
push 0x28
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebx + 0x918]
push 0
push 0
push 0x700a0
push dword [eax + 0xb94]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x848
call fcn.005a59ed
mov esi, eax
add esp, 4
mov dword [ebp - 0xa94], esi
test esi, esi
jne 0x4a4baf
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xaac], esp
push 0x6b1370
call fcn.00420d90
mov byte [ebp - 4], 4
jmp 0x4a4b0b
push 0x848
push 0
push esi
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0xa90]
push 0
push eax
push 4
lea eax, [ebp - 0xa98]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xa98]
xor ecx, ecx
mov dword [ebp - 0xab0], ecx
test eax, eax
jle 0x4a4e7f
nop
push eax
push ecx
push 0x40d
mov ecx, ebx
call dword [sym.imp.ycomuiu.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xa90]
push 0
push eax
push 4
lea eax, [ebp - 0xa8c]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 0xa90]
push eax
push dword [ebp - 0xa8c]
push esi
push edi
call ebx
push dword [ebp - 0xa8c]
call fcn.005a59ed
mov ecx, dword [ebp - 0xa8c]
add esp, 4
xor edi, edi
mov dword [ebp - 0xaa8], eax
test ecx, ecx
je 0x4a4ca1
mov ebx, dword [ebp - 0xa94]
mov esi, eax
sub ebx, eax
nop word [eax + eax]
mov ecx, 0x6b88a0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4c70
mov eax, dword [ebp - 0xa9c]
sub ecx, edx
sar ecx, 1
xor edx, edx
div ecx
mov cl, byte [ebx + esi]
inc edi
xor cl, byte [edx*2 + 0x6b88a0]
mov byte [esi], cl
inc esi
mov ecx, dword [ebp - 0xa8c]
cmp edi, ecx
jb 0x4a4c60
inc dword [ebp - 0xa9c]
lea eax, [ecx + ecx*4]
shl eax, 2
push eax
call fcn.00560596
mov ecx, dword [ebp - 0xa8c]
add esp, 4
mov esi, dword [ebp - 0xaa8]
mov ebx, eax
mov dword [ebp - 0xac8], ecx
lea ecx, [ebp - 0xaf4]
mov word [ebp - 0xadc], 0x101
mov dword [ebp - 0xad8], esi
mov dword [ebp - 0xac4], 0
mov dword [ebp - 0xad4], ebx
mov dword [ebp - 0xac0], 0
call fcn.00465860
push esi
call fcn.005a51fb
add esp, 4
cmp dword [ebp - 0xac0], 0x848
push ebx
je 0x4a4d27
call fcn.00560591
mov ebx, dword [ebp - 0xaa0]
add esp, 4
jmp 0x4a4e58
mov ecx, 0x212
lea edi, [ebp - 0xa88]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00560591
mov eax, dword [ebp - 0x24c]
add esp, 4
cmp eax, 1
je 0x4a4d51
test eax, eax
jne 0x4a4eea
push 0x48
call fcn.00560437
add esp, 4
mov dword [ebp - 0xab4], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x678]
push 0xffffffffffffffff
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
push dword [ebp - 0x264]
push dword [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x880]
push ecx
lea ecx, [ebp - 0xa88]
push ecx
mov ecx, eax
call fcn.00494500
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24c]
lea edx, [ebp - 0x470]
mov dword [esi + 0x34], ecx
lea edi, [edx + 2]
mov ecx, dword [ebp - 0x250]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0xaa8], esi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a4dc5
sub edx, edi
lea eax, [ebp - 0x470]
sar edx, 1
push edx
push eax
call fcn.0040c9d0
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0xaa8]
mov ebx, dword [ebp - 0xaa0]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x258]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x254]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x20], eax
mov esi, dword [ebx + 0x918]
push ecx
mov edi, dword [esi + 0x9e4]
mov eax, dword [edi + 4]
push eax
push edi
mov dword [ebp - 0xaac], eax
call fcn.004a5a20
mov edx, dword [esi + 0x9e8]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x4a4fd5
lea ecx, [edx + 1]
mov dword [esi + 0x9e8], ecx
mov ecx, dword [ebp - 0xaac]
mov dword [edi + 4], eax
mov dword [ecx], eax
mov ecx, dword [ebp - 0xab0]
mov eax, dword [ebp - 0xa98]
inc ecx
mov edi, dword [ebp - 0xaa4]
mov esi, dword [ebp - 0xa94]
mov dword [ebp - 0xab0], ecx
cmp ecx, eax
jl 0x4a4bf0
push esi
call fcn.005a51fb
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edi
call eax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4ea0
mov eax, dword [ebx + 0x918]
sub ecx, edx
sar ecx, 1
movzx ecx, word [ebp + ecx*2 - 0x21a]
sub ecx, 0x30
mov dword [eax + 0xadc], ecx
mov ecx, dword [ebx + 0x918]
add ecx, 0xa04
cmp word [ebp - 0x204], 0x7b
jne 0x4a4f42
lea eax, [ebp - 0x204]
push eax
call fcn.004a7580
jmp 0x4a4f4d
push dword [ebp - 0xa94]
call fcn.005a51fb
mov esi, dword [ebp - 0xaa0]
add esp, 4
mov ecx, dword [esi + 0x918]
call fcn.004b9e60
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xab4], esp
push 0x6b1220
call fcn.00420d90
mov byte [ebp - 4], 6
mov byte [ebp - 4], 0
mov ecx, dword [esi + 4]
call fcn.004e1110
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push dword [ebp - 0xaa4]
call eax
mov ecx, esi
jmp 0x4a4f73
push dword [ebp - 0x210]
call fcn.004a74b0
mov ecx, dword [ebx + 0x918]
mov dword [ecx + 0xa34], eax
mov ecx, ebx
mov eax, dword [ebx + 0x908]
push dword [ebp - 0xa98]
mov dword [0x6b0c54], eax
call fcn.004a5080
mov ecx, ebx
push 1
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::Close_unsigned_int_]
mov dword [ebp - 4], 0xffffffff
push 1
push dword [ebp - 0xaf4]
call fcn.005603ff
push 4
push dword [ebp - 0xae8]
call fcn.005603ff
push 4
push dword [ebp - 0xae4]
call fcn.005603ff
push 4
push dword [ebp - 0xae0]
call fcn.005603ff
add esp, 0x20
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.0055f9be
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.00562d3e
int3