Function at 0x4d6b60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8193
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x67d070]
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 esi, ecx
xor eax, eax
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x458]
push 1
push 0x62325c
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], eax
mov word [ebp - 0x458], ax
call fcn.00407060
mov byte [ebp - 4], 1
lea edx, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
cmovae edx, dword [ebp - 0x458]
cmp word [edx], 0
jne 0x4d6bfb
xor ecx, ecx
jmp 0x4d6c0f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d6c00
sub ecx, edi
sar ecx, 1
push ecx
push ecx
lea ebx, [esi + 0x4c]
push edx
mov ecx, ebx
call fcn.004b1090
push eax
push 0
lea eax, [ebp - 0x440]
mov ecx, ebx
push eax
call fcn.0040a860
mov edi, eax
lea eax, [ebp - 0x428]
cmp eax, edi
je 0x4d6c80
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x4d6c57
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x414], 7
push edi
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
call fcn.004098a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x4d6ca2
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407b40
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.00410e10
push str.asu.trace
push eax
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 3
push eax
call fcn.0041fe70
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x428]
cmp eax, edi
je 0x4d6d28
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x4d6cff
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x414], 7
push edi
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
call fcn.004098a0
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x4d6d46
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407b40
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x440], ax
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
cmp eax, 8
jb 0x4d6d85
inc eax
lea ecx, [ebp - 0x470]
push eax
push dword [ebp - 0x470]
call fcn.00407b40
mov eax, dword [esi + 0x64]
cmp eax, 0xa
je 0x4d6da0
cmp eax, 0x14
je 0x4d6d99
mov edi, 0xa00000
jmp 0x4d6da5
mov edi, 0x1400000
jmp 0x4d6da5
mov edi, 0x3200000
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.005b3770
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
push str.rb__ccsUTF_8
cmovae eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0
push eax
call fcn.005c99cb
mov eax, dword [ebp - 0x474]
add esp, 0x18
test eax, eax
je 0x4d6e14
push eax
push 9
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.005cd8e4
push dword [ebp - 0x474]
call fcn.005c9aaa
add esp, 0x14
lea edx, [ebp - 0x480]
mov ecx, ebx
call fcn.004d6ad0
mov byte [ebp - 0x475], al
test al, al
je 0x4d6f80
cmp dword [ebp - 0x47c], 0
jl 0x4d6f80
jg 0x4d6e4a
cmp dword [ebp - 0x480], edi
jb 0x4d6f80
mov eax, dword [esi + 0x68]
lea edi, [esi + 0x68]
mov byte [esi + 0xd0], 1
test eax, eax
je 0x4d6e62
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov dword [ebp - 0x42c], 7
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call fcn.00407550
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 5
call fcn.004df0a0
push ecx
lea edx, [ebp - 0x440]
mov ecx, ebx
call fcn.004d6980
add esp, 4
test al, al
je 0x4d6eb9
mov ecx, esi
call fcn.004b08d0
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax]
call eax
push str.keeplogs
lea ecx, [ebp - 0x470]
mov bl, al
call fcn.00406f00
mov byte [ebp - 4], 6
lea eax, [ebp - 0x470]
mov edi, dword [ebp - 0x45c]
lea ecx, [ebp - 0x410]
cmp edi, 0x10
cmovae eax, dword [ebp - 0x470]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4d6f14
test dl, dl
je 0x4d6f10
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4d6f14
add ecx, 2
add eax, 2
test dl, dl
jne 0x4d6ef4
xor eax, eax
jmp 0x4d6f19
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d6f2b
push ecx
mov ecx, esi
call fcn.004af970
mov edi, dword [ebp - 0x45c]
cmp edi, 0x10
jb 0x4d6f45
lea eax, [edi + 1]
push eax
push dword [ebp - 0x470]
lea ecx, [ebp - 0x470]
call fcn.00407440
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x45c], 0xf
mov dword [ebp - 0x460], 0
mov byte [ebp - 0x470], 0
cmp eax, 8
jb 0x4d6f86
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407b40
jmp 0x4d6f86
mov bl, byte [ebp - 0x475]
mov eax, dword [ebp - 0x444]
cmp eax, 8
jb 0x4d6fa4
inc eax
lea ecx, [ebp - 0x458]
push eax
push dword [ebp - 0x458]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x448], 0
cmp eax, 8
jb 0x4d6fdf
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00407b40
mov al, bl
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.00599c70
mov esp, ebp
pop ebp
ret 4