Function at 0x4d5cc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
mov esi, dword [ebx + 4]
mov edx, dword [esi + 0x14]
test edx, edx
push edi
je 0x4d5d0d
mov eax, dword [esi + 0x1c]
mov edi, 2
cmp eax, edi
jb 0x4d5ceb
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 2]
cmp ebp, eax
jbe 0x4d5cf4
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4d5d30
push edi
add ecx, edx
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 2
jmp 0x4d5d2e
mov ecx, dword [esi + 4]
push ecx
push 1
lea edx, [esp + 0x2c]
push 2
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4d5d3f
cmp dword [esi + 4], eax
jne 0x4d5d30
cmp dword [esi + 0xc], eax
je 0x4d5d3f
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
mov ax, word [esp + 0x24]
mov esi, dword [ebx + 4]
rol ax, 8
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4d5d91
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x4d5d6f
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x4d5d78
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4d5d30
add ecx, edx
push edi
push ecx
lea edx, [esp + 0x1f]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x4d5db2
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4d5db8
cmp dword [esi + 4], eax
jne 0x4d5d30
cmp dword [esi + 0xc], eax
jne 0x4d5d30
mov esi, dword [ebx + 4]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4d5dfe
mov eax, dword [esi + 0x1c]
mov edi, 2
cmp eax, edi
jb 0x4d5dd8
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 2]
cmp ebp, eax
jbe 0x4d5de5
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4d5d30
add ecx, edx
push edi
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 2
jmp 0x4d5e23
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x28]
push 2
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4d5e29
cmp dword [esi + 4], eax
jne 0x4d5d30
cmp dword [esi + 0xc], eax
jne 0x4d5d30
mov dx, word [esp + 0x20]
mov esi, dword [ebx + 4]
rol dx, 8
movzx eax, dx
mov dword [esp + 0x20], eax
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4d5e7f
mov eax, dword [esi + 0x1c]
mov edi, 2
cmp eax, edi
jb 0x4d5e59
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 2]
cmp ebp, eax
jbe 0x4d5e66
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4d5d30
add ecx, edx
push edi
push ecx
lea ecx, [esp + 0x24]
push ecx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 2
jmp 0x4d5ea4
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esp + 0x24]
push 2
push eax
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4d5eaa
cmp dword [esi + 4], eax
jne 0x4d5d30
cmp dword [esi + 0xc], eax
jne 0x4d5d30
mov cx, word [esp + 0x1c]
mov esi, dword [ebx + 4]
rol cx, 8
movzx edx, cx
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4d5f00
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x4d5eda
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x4d5ee7
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4d5d30
push edi
add ecx, edx
push ecx
lea eax, [esp + 0x1e]
push eax
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x4d5f25
mov ecx, dword [esi + 4]
push ecx
push 1
lea edx, [esp + 0x1e]
push 1
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4d5f2b
cmp dword [esi + 4], eax
jne 0x4d5d30
cmp dword [esi + 0xc], eax
jne 0x4d5d30
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4d5f59
mov ecx, dword [ebx]
shr ecx, 6
test cl, 1
je 0x4d5f59
lea edx, [esp + 0x1c]
push edx
push 0x4c
push eax
call fcn.004d8da0
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x20]
push eax
push 0x4d
push ecx
call fcn.004d8da0
movzx esi, byte [esp + 0x16]
movzx eax, word [esp + 0x24]
lea edx, [esi + esi*2 + 8]
cmp eax, edx
jne 0x4d5d30
xor eax, eax
xor ecx, ecx
mov ebp, eax
xor edi, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
xor edx, edx
mov eax, ecx
xor ebx, ebx
test esi, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
jle 0x4d6145
mov ecx, dword [esp + 0x4c]
mov esi, dword [ecx + 4]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4d5fef
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x4d5fc9
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x4d5fd6
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4d5d30
add ecx, edx
push edi
push ecx
lea edx, [esp + 0x1d]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x4d6014
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x1d]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4d601a
cmp dword [esi + 4], eax
jne 0x4d5d30
cmp dword [esi + 0xc], eax
jne 0x4d5d30
mov edx, dword [esp + 0x4c]
mov esi, dword [edx + 4]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4d6064
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x4d603e
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x4d604b
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4d5d30
push edi
add ecx, edx
push ecx
lea eax, [esp + 0x1d]
push eax
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x4d6089
mov ecx, dword [esi + 4]
push ecx
push 1
lea edx, [esp + 0x1d]
push 1
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4d608f
cmp dword [esi + 4], eax
jne 0x4d5d30
cmp dword [esi + 0xc], eax
jne 0x4d5d30
cmp ebx, 4
movzx eax, byte [esp + 0x15]
jge 0x4d60ac
mov ecx, eax
sar ecx, 4
and ecx, 0xf
and eax, 0xf
mov dword [esp + ebx*4 + 0x28], ecx
mov dword [esp + ebx*4 + 0x38], eax
mov edx, dword [esp + 0x4c]
mov esi, dword [edx + 4]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4d60f6
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x4d60d0
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 1]
cmp ebp, eax
jbe 0x4d60dd
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4d5d30
push edi
add ecx, edx
push ecx
lea eax, [esp + 0x1d]
push eax
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
jmp 0x4d611b
mov ecx, dword [esi + 4]
push ecx
push 1
lea edx, [esp + 0x1d]
push 1
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4d6121
cmp dword [esi + 4], eax
jne 0x4d5d30
cmp dword [esi + 0xc], eax
jne 0x4d5d30
movzx eax, byte [esp + 0x16]
add ebx, 1
cmp ebx, eax
jl 0x4d5fa5
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
movzx esi, byte [esp + 0x16]
mov ebx, 1
sub esi, ebx
je 0x4d62e4
sub esi, 2
je 0x4d6248
sub esi, ebx
jne 0x4d6308
mov esi, 2
cmp edi, esi
jne 0x4d6203
cmp edx, esi
jne 0x4d61bc
cmp ebp, ebx
jne 0x4d6308
cmp eax, ebx
jne 0x4d6308
cmp dword [esp + 0x30], ebx
jne 0x4d6308
cmp dword [esp + 0x40], ebx
jne 0x4d6308
cmp dword [esp + 0x34], esi
jne 0x4d6308
cmp ecx, esi
jne 0x4d6308
mov dword [esp + 0x18], 4
jmp 0x4d62e8
cmp edx, ebx
jne 0x4d6308
cmp ebp, ebx
jne 0x4d6308
cmp eax, ebx
jne 0x4d6308
cmp dword [esp + 0x30], ebx
jne 0x4d6308
cmp dword [esp + 0x40], ebx
jne 0x4d6308
cmp dword [esp + 0x34], esi
jne 0x4d6308
cmp ecx, ebx
jne 0x4d6308
mov dword [esp + 0x18], esi
jmp 0x4d62e8
cmp edi, ebx
jne 0x4d6308
cmp edx, ebx
jne 0x4d6308
cmp ebp, ebx
jne 0x4d6308
cmp eax, ebx
jne 0x4d6308
cmp dword [esp + 0x30], ebx
jne 0x4d6308
cmp dword [esp + 0x40], ebx
jne 0x4d6308
cmp dword [esp + 0x34], ebx
jne 0x4d6308
cmp ecx, ebx
jmp 0x4d62e2
cmp edi, 2
jne 0x4d62a5
cmp edx, edi
jne 0x4d627f
cmp ebp, ebx
jne 0x4d6308
cmp eax, ebx
jne 0x4d6308
cmp dword [esp + 0x30], ebx
jne 0x4d6308
cmp dword [esp + 0x40], ebx
jne 0x4d6308
mov dword [esp + 0x18], 4
jmp 0x4d62e8
cmp edx, ebx
jne 0x4d6308
cmp ebp, ebx
jne 0x4d6308
cmp eax, ebx
jne 0x4d6308
cmp dword [esp + 0x30], ebx
jne 0x4d6308
cmp dword [esp + 0x40], ebx
jne 0x4d6308
mov dword [esp + 0x18], 2
jmp 0x4d62e8
cmp edi, ebx
jne 0x4d6308
cmp edx, 2
jne 0x4d62cc
cmp ebp, ebx
jne 0x4d6308
cmp eax, ebx
jne 0x4d6308
cmp dword [esp + 0x30], ebx
jne 0x4d6308
cmp dword [esp + 0x40], ebx
jne 0x4d6308
mov dword [esp + 0x18], 3
jmp 0x4d62e8
cmp edx, ebx
jne 0x4d6308
cmp ebp, ebx
jne 0x4d6308
cmp eax, ebx
jne 0x4d6308
cmp dword [esp + 0x30], ebx
jne 0x4d6308
cmp dword [esp + 0x40], ebx
jne 0x4d6308
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
shr ecx, 0xc
test bl, cl
je 0x4d6308
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x18]
push edx
push 0x12c
push eax
call fcn.00426320
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret 4