Function at 0x6d40b430
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x664
mov eax, dword [0x6d41e108]
xor eax, esp
mov dword [esp + 0x660], eax
mov eax, dword [0x6d41e7f8]
cmp byte [eax + 0x38], 0x62
push ebx
push esi
push edi
jne 0x6d40b558
xor ebx, ebx
cmp byte [eax + 0x53], bl
jne 0x6d40b462
cmp byte [eax + 0x54], bl
je 0x6d40b467
mov ebx, 1
cmp byte [eax + 0x50], 0
je 0x6d40b470
or ebx, 2
push ebp
call fcn.6d40ebc0
mov esi, eax
mov eax, dword [0x6d41e7f8]
mov ebp, dword [eax + 0x10]
mov eax, ebp
mov edi, edx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6d40b487
sub eax, ecx
inc eax
push eax
push ebp
call fcn.6d40ac10
push 4
mov dword [esp + 0x1c], 4
call fcn.6d40ed90
lea ecx, [esp + 0x1c]
push 4
push ecx
mov dword [esp + 0x24], eax
call fcn.6d40ac10
mov edx, edi
push edi
sar edx, 0x1f
mov dword [esp + 0x28], edi
call fcn.6d40ed90
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
call fcn.6d40ac10
push esi
mov dword [esp + 0x34], esi
call fcn.6d40ed90
lea ecx, [esp + 0x34]
push 4
push ecx
mov dword [esp + 0x3c], eax
call fcn.6d40ac10
mov esi, 6
mov al, 0xe
call fcn.6d40acb0
push ebx
mov dword [esp + 0x40], ebx
call fcn.6d40ed90
lea edx, [esp + 0x40]
push 4
push edx
mov dword [esp + 0x48], eax
call fcn.6d40ac10
mov eax, dword [0x6d41e7f8]
movzx eax, word [eax + 0x3c]
push eax
mov dword [esp + 0x4c], eax
call fcn.6d40ed80
movzx ecx, ax
lea edx, [esp + 0x4c]
push 2
push edx
mov dword [esp + 0x54], ecx
call fcn.6d40ac10
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.6d417d33
add esp, 0x664
ret
cmp byte [eax + 0x51], 0
je 0x6d40b568
cmp byte [eax + 0x52], 0
jne 0x6d40b697
push 0
call dword [sym.imp.msvcr100.dll__time64]
push str.jvm.hprof.txt
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x104
push eax
mov dword [esp + 0x20], edx
call fcn.6d40ef90
lea ecx, [esp + 0x24]
push ecx
call fcn.6d40eaa0
mov edi, eax
add esp, 0x14
test edi, edi
jns 0x6d40b5e1
lea edx, [esp + 0x14]
push edx
push str.Cant_open__s
lea eax, [esp + 0x120]
push 0x154
push eax
call fcn.6d40ed10
push 0x2e0
push str..._.._.._src_share_demo_jvmti_hprof_hprof_io.c
lea ecx, [esp + 0x130]
push ecx
push 0
push 1
mov byte [esp + 0x28f], 0
call fcn.6d405ce0
add esp, 0x24
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.msvcr100.dll__ctime64]
push eax
mov eax, dword [0x6d41e7f8]
mov ecx, dword [eax + 0x10]
push ecx
push str._s__created__s_n
call fcn.6d40ad90
add esp, 0x10
push 0x400
lea edx, [esp + 0x270]
push edx
push edi
call sub.msvcr100.dll__read
mov esi, eax
add esp, 0xc
test esi, esi
js 0x6d40b638
je 0x6d40b64f
lea eax, [esp + 0x26c]
push esi
push eax
call fcn.6d40ac10
add esp, 8
test esi, esi
jg 0x6d40b603
jmp 0x6d40b64f
call dword [sym.imp.msvcr100.dll__errno]
mov ecx, dword [eax]
push ecx
push esi
mov ebx, str.read
call fcn.6d40aa50
add esp, 8
push edi
call fcn.6d40eb60
push str._n_________n_n
call fcn.6d40ad90
mov ecx, dword [0x6d41e7f8]
mov edi, dword [ecx + 0x11c]
add esp, 8
test edi, edi
je 0x6d40b697
movzx edx, byte [ecx + 0x74]
mov eax, dword [ecx + 0x118]
mov ecx, dword [ecx + 0x70]
push edx
call fcn.6d40ab20
mov eax, dword [0x6d41e7f8]
add esp, 4
mov dword [eax + 0x11c], 0
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6d417d33
add esp, 0x664
ret