Function at 0x4d37f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x511538]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x214], edi
mov dword [eax], edi
cmp ebx, edi
je 0x4d3df4
call fcn.004d37b0
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x4d386e
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6168
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4d3877
mov esi, 0x4fddbc
push eax
push esi
push 0x4fdda8
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.004d3430
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4d38b8
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [0x5114c4]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6168
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
or edi, dword [ebp - 0x20c]
je 0x4d38f1
push 0x5013d8
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.004d3430
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d3d76
mov edx, dword [ebp - 0x21c]
push edx
push 0x4fdda0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.004d3430
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d3d76
push 0x4fdd78
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.004d3430
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d3d76
mov eax, dword [ebx + 8]
cdq
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
lea edx, [ebp - 0x208]
push 1
push edx
call fcn.004d3220
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4d3d76
push 0x50585c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.004d3430
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d3d76
cmp dword [ebx + 0x24], eax
je 0x4d39e8
mov edx, dword [ebp - 0x214]
push edx
call dword [0x5114c4]
mov ecx, dword [ebp - 0x220]
add esp, 4
call fcn.004d37b0
mov edi, eax
mov dword [ebp - 0x214], edi
test edi, edi
je 0x4d3d43
push edi
push 0x4fdd48
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.004d3430
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d3d7c
mov edi, ebx
mov dword [ebp - 0x218], edi
cmp dword [ebx + 0x24], 0
je 0x4d3a34
mov edx, dword [ebp - 0x214]
push edx
push 0x4fdd20
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.004d3430
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d3d76
lea edx, [ebp - 0x210]
lea eax, [ebp - 0x208]
push edx
push eax
mov eax, edi
jmp 0x4d3a55
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x4d3a67
cmp dword [ebx + 0x2c], 0
jne 0x4d3a45
test al, 1
je 0x4d3a5f
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x208]
push edx
mov eax, ebx
call fcn.004d3540
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d3d76
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4d3a94
push eax
push 0x4fdd0c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.004d3430
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d3d76
mov edi, dword [edi + 0x20]
test edi, edi
je 0x4d3ad1
jmp 0x4d3aa0
mov edx, dword [edi]
push edx
push 0x4fdd04
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.004d3430
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d3d76
mov edi, dword [edi + 4]
test edi, edi
jne 0x4d3aa0
jmp 0x4d3ad9
test esi, esi
jne 0x4d3d76
push 0x4fdcfc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.004d3430
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d3d76
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x4d3ba1
test al, 0x10
je 0x4d3b35
mov eax, dword [ebx + 0x18]
cdq
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebx + 0x14]
push edx
push eax
lea edx, [ebp - 0x208]
push 2
push edx
call fcn.004d3220
add esp, 0x14
mov esi, eax
jmp 0x4d3ce3
test al, 0x40
je 0x4d3b6d
test al, al
jns 0x4d3b45
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x4d3b49
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebx + 0x30]
push edx
push eax
lea edx, [ebp - 0x208]
push 3
push edx
call fcn.004d3220
add esp, 0x14
mov esi, eax
jmp 0x4d3ce3
test al, al
jns 0x4d3b79
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x4d3b7d
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
push eax
lea edx, [ebp - 0x208]
push 2
push edx
call fcn.004d3220
add esp, 0x14
mov esi, eax
jmp 0x4d3ce3
mov eax, dword [ebp - 0x218]
mov edi, dword [eax + 0xc]
mov ecx, edi
mov eax, 0x507ab8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d3bd1
test dl, dl
je 0x4d3bcd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d3bd1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4d3bb1
xor eax, eax
jmp 0x4d3bd6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d3be1
call fcn.004d755f
jmp 0x4d3bef
push 0x4f5f20
push edi
call fcn.004d9a26
add esp, 8
mov edi, eax
test edi, edi
je 0x4d3cb0
call fcn.004d755f
push edi
cmp edi, eax
je 0x4d3c34
call fcn.004d7e54
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [eax + 0xc]
push 0
push 0
lea edx, [ebp - 0x208]
push 4
push edx
call fcn.004d3220
add esp, 0x18
mov esi, eax
jmp 0x4d3ce3
push 0x200
lea ecx, [ebp - 0x204]
push 1
push ecx
call fcn.004dc1a8
add esp, 0x10
test eax, eax
je 0x4d3ce3
lea edx, [ebp - 0x210]
push edx
push 0
push eax
lea eax, [ebp - 0x208]
push 2
push eax
lea ecx, [ebp - 0x204]
call fcn.004d3220
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4d3ce3
push edi
call fcn.004de27d
add esp, 4
test eax, eax
jne 0x4d3ce3
push edi
call fcn.004de2a5
add esp, 4
test eax, eax
jne 0x4d3ce3
push edi
push 0x200
lea ecx, [ebp - 0x204]
push 1
push ecx
call fcn.004dc1a8
add esp, 0x10
test eax, eax
jne 0x4d3c52
jmp 0x4d3ce3
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4d3cd2
mov edx, dword [ebp - 0x218]
mov ecx, dword [edx + 0xc]
push ecx
push 0x4fdce4
push eax
call fcn.004ae3a0
add esp, 0xc
mov edx, dword [ebp - 0x228]
mov dword [edx], 0
mov esi, 0x1a
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4d3d01
test esi, esi
jne 0x4d3d76
mov edi, eax
jmp 0x4d39f0
test esi, esi
jne 0x4d3d76
cmp dword [ebx + 0x24], esi
je 0x4d3d32
mov ecx, dword [ebp - 0x214]
push ecx
push 0x4fdcd8
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.004d3430
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d3d76
mov ebx, dword [ebx]
test ebx, ebx
je 0x4d3d4a
mov edi, dword [ebp - 0x210]
jmp 0x4d38c4
mov esi, 0x1b
jmp 0x4d3d7c
test esi, esi
jne 0x4d3d76
mov ecx, dword [ebp - 0x21c]
push ecx
push 0x4fdccc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.004d3430
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d3db2
mov edi, dword [ebp - 0x214]
lea ecx, [ebp - 0x224]
push ecx
call fcn.004d3480
push edi
call dword [0x5114c4]
mov edx, dword [ebp - 0x21c]
push edx
call dword [0x5114c4]
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6168
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x20c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x214]
push eax
call dword [0x5114c4]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [0x5114c4]
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
add esp, 8
mov dword [eax], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004d6168
mov esp, ebp
pop ebp
ret