Function at 0x4d93c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b13f0
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5fa040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x230], ebx
call fcn.004d99b0
lea edx, [esi + 0x60]
mov ecx, ebx
call fcn.0047e180
test eax, eax
jne 0x4d9968
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x220], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x224], 0xffffffff
nop
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x200
push eax
lea edx, [ebp - 0x214]
mov ecx, ebx
call fcn.00558f10
add esp, 4
test eax, eax
jne 0x4d9968
cmp dword [ebp - 0x228], 0x1c
jb 0x4d9963
lea ecx, [ebp - 0x210]
mov edx, 0x5c3668
lea edi, [eax + 0xc]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4d9885
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4d9484
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
and eax, ecx
cmp eax, 0xffffffff
jne 0x4d963a
mov edi, dword [esi + 0x60]
mov ebx, dword [esi + 0x64]
test ebx, ebx
jne 0x4d94d0
cmp edi, 0x200
jb 0x4d95da
nop word [eax + eax]
mov ecx, dword [ebp - 0x220]
add edi, 0xfffffe00
mov eax, dword [ebp - 0x218]
adc ebx, 0xffffffff
sub ecx, edi
sbb eax, ebx
mov dword [ebp - 0x228], eax
jne 0x4d95da
jb 0x4d9503
cmp ecx, 0x100000
ja 0x4d95da
mov ecx, dword [ebp - 0x230]
push ebx
push edi
mov dword [ebp - 0x228], 0x200
call fcn.00430da0
add esp, 8
test eax, eax
jne 0x4d9968
mov ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x228]
push eax
lea edx, [ebp - 0x214]
call fcn.00558f10
add esp, 4
test eax, eax
jne 0x4d9968
mov ecx, dword [ebp - 0x228]
cmp ecx, 0x200
jb 0x4d95da
cmp ecx, 2
jb 0x4d94b6
cmp byte [ebp - 0x214], 0x4d
jne 0x4d94b6
cmp byte [ebp - 0x213], 0x5a
jne 0x4d94b6
cmp ecx, 0x40
jb 0x4d94b6
mov edx, dword [ebp - 0x1d8]
lea eax, [edx - 0x40]
cmp eax, 0xfc0
ja 0x4d94b6
test dl, 7
jne 0x4d94b6
lea eax, [edx + 0x18]
cmp eax, ecx
ja 0x4d94b6
cmp dword [ebp + edx - 0x214], 0x4550
jne 0x4d94b6
cmp word [ebp + edx - 0x200], 0x60
jb 0x4d94b6
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x224], ebx
push dword [ebp - 0x218]
mov ebx, dword [ebp - 0x230]
mov ecx, ebx
push dword [ebp - 0x220]
mov dword [ebp - 0x228], 0x200
call fcn.00430da0
add esp, 8
test eax, eax
jne 0x4d9968
lea eax, [ebp - 0x228]
mov ecx, ebx
push eax
lea edx, [ebp - 0x214]
call fcn.00558f10
add esp, 4
test eax, eax
jne 0x4d9968
cmp dword [ebp - 0x228], 0x1c
jb 0x4d9963
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x218]
xor edi, edi
mov edx, dword [ebp - 0x220]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x21c]
and eax, ecx
mov dword [esi + 0x60], edx
cmp eax, 0xffffffff
je 0x4d9695
mov eax, dword [ebp - 0x218]
mov ecx, edx
sub ecx, dword [ebp - 0x21c]
sbb eax, dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
jne 0x4d9695
jb 0x4d9681
cmp ecx, 0x100000
jae 0x4d9695
mov eax, dword [ebp - 0x21c]
mov edi, ecx
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x224]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x218]
mov ecx, edx
add ecx, 0x1c
mov dword [esi + 0x68], ecx
adc eax, 0
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x214]
mov dword [esi + 0xc0], eax
test eax, 0xfffffff0
jne 0x4d9963
not al
and al, 1
mov byte [esi + 0xd7], al
mov eax, dword [ebp - 0x200]
mov dword [esi + 0xc4], eax
mov eax, dword [ebp - 0x1fc]
mov dword [esi + 0xc8], eax
cmp eax, 0x1c
jbe 0x4d9963
lea edx, [esi + 0x48]
mov ecx, ebx
call fcn.00439b60
test eax, eax
jne 0x4d9968
mov byte [esi + 0x70], 1
test edi, edi
je 0x4d97a1
cmp edi, dword [esi + 0xbc]
je 0x4d974d
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x4d972e
push eax
call fcn.00588148
add esp, 4
mov dword [esi + 0xb8], 0
push edi
mov dword [esi + 0xbc], 0
call fcn.0058813f
add esp, 4
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], edi
push dword [ebp - 0x224]
mov ecx, ebx
push dword [ebp - 0x21c]
call fcn.00430da0
add esp, 8
test eax, eax
jne 0x4d9968
mov edx, dword [esi + 0xb8]
lea eax, [ebp - 0x230]
push eax
mov ecx, ebx
mov dword [ebp - 0x230], edi
call fcn.00558f10
add esp, 4
test eax, eax
jne 0x4d9968
cmp edi, dword [ebp - 0x230]
setne al
test eax, eax
jne 0x4d9968
push 0x30
mov dword [ebp - 4], 0
call fcn.00587dd8
mov edi, eax
add esp, 4
mov dword [edi + 4], 0
mov dword [edi], vtable.CLimitedInStream.0
push edi
mov dword [edi + 8], 0
call dword [0x5cf040]
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4d97dc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x58], edi
test ebx, ebx
je 0x4d97e9
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4d97f6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x218]
mov dword [edi + 8], ebx
mov eax, dword [esi + 0xc8]
mov ebx, dword [ebp - 0x220]
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x1c], ecx
mov ecx, edi
mov dword [edi + 0x28], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
call fcn.004d6b90
sub dword [esi + 0x68], ebx
mov ecx, esi
mov eax, dword [esi + 0x6c]
sbb eax, dword [ebp - 0x218]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x228]
add eax, 0xffffffe4
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.004d90c0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4d987e
mov edx, dword [esi + 0x58]
test edx, edx
je 0x4d987e
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov dword [esi + 0x58], 0
mov eax, edi
jmp 0x4d9968
mov edx, dword [ebp - 0x228]
cmp edx, 2
jb 0x4d98f7
cmp byte [ebp - 0x214], 0x4d
jne 0x4d98f7
cmp byte [ebp - 0x213], 0x5a
jne 0x4d98f7
cmp edx, 0x40
jb 0x4d98f7
mov ecx, dword [ebp - 0x1d8]
lea eax, [ecx - 0x40]
cmp eax, 0xfc0
ja 0x4d98f7
test cl, 7
jne 0x4d98f7
lea eax, [ecx + 0x18]
cmp eax, edx
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x218]
ja 0x4d9903
cmp dword [ebp + ecx - 0x214], 0x4550
jne 0x4d9903
cmp word [ebp + ecx - 0x200], 0x60
jb 0x4d9903
mov edi, eax
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edi
jmp 0x4d9909
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x220]
mov edi, dword [ebp - 0x21c]
add eax, 0x200
mov dword [ebp - 0x220], eax
adc edx, 0
mov dword [ebp - 0x218], edx
mov edx, eax
sub edx, dword [esi + 0x60]
mov ecx, dword [ebp - 0x218]
sbb ecx, dword [esi + 0x64]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4d9440
cmp ecx, dword [eax + 4]
jb 0x4d9440
ja 0x4d9949
cmp edx, dword [eax]
jbe 0x4d9440
mov eax, edi
or eax, dword [ebp - 0x224]
jne 0x4d9963
test ecx, ecx
jne 0x4d9963
cmp edx, 0x100000
jbe 0x4d9440
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 8