Function at 0x4dfa00
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20b4
call fcn.00532860
push ebx
push esi
push edi
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
lea ebx, [ebp - 0xd8]
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
lea esi, [edx + eax]
lea eax, [esi - 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
and eax, 0xff8f5a6f
je 0x4dfa6a
mov eax, 0xfffffffd
jmp 0x4e0749
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4dfa85
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4dfa85
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x4dfa8f
cmp dword [ebp + 0x24], 0
jle 0x4dfa8f
mov eax, 0xfffffffe
jmp 0x4e0749
cmp dword [ebp + 0x24], 0
jge 0x4dfa9f
mov eax, 0xfffffff1
jmp 0x4e0749
mov dword [ebp - 0x50], 0
mov dword [ebx + 4], 0x989680
mov dword [ebx + 8], 0x989680
mov dword [ebx + 0x78], 0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4dfb38
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x206c], eax
and eax, 1
je 0x4dfae8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x206c]
and eax, 2
je 0x4dfafc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x206c]
and eax, 0x10
je 0x4dfb10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x206c]
and eax, 4
je 0x4dfb24
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0x206c]
and eax, 8
je 0x4dfb38
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4dfb48
lea eax, [0x7c4fdc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 0x50435245
je 0x4dfb93
lea eax, [ebp - 0x2040]
push eax
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x2068]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004e84b0
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4dfb83
mov eax, 0xfffffffc
jmp 0x4e0749
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4dfb93
lea eax, [ebp - 0x2040]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x1c]
or eax, edx
and eax, 0x10
je 0x4dfbaa
mov edi, 1
jmp 0x4dfbac
xor edi, edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
and eax, 0x10000000
je 0x4dfbc8
mov dword [ebp - 0x206c], 1
jmp 0x4dfbd2
mov dword [ebp - 0x206c], 0
mov eax, dword [ebp - 0x206c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
and eax, 0x40000
je 0x4dfbf4
mov dword [ebp - 0x2070], 1
jmp 0x4dfbfe
mov dword [ebp - 0x2070], 0
mov eax, dword [ebp - 0x2070]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
movzx edx, word [eax + 0x1c]
movzx ecx, word [eax + 0x1a]
imul edx, ecx
movzx eax, word [eax + 0x18]
mov ecx, dword [ebp - 0x4c]
add eax, ecx
add eax, edx
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x68], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebx + 0x50]
add eax, edx
mov dword [ebx + 0x54], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
and eax, 0x20
je 0x4dfc54
mov dword [ebp - 0x2074], 1
jmp 0x4dfc5e
mov dword [ebp - 0x2074], 0
mov eax, dword [ebp - 0x2074]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
and eax, 0x800
je 0x4dfc80
mov dword [ebp - 0x2078], 1
jmp 0x4dfc8a
mov dword [ebp - 0x2078], 0
mov eax, dword [ebp - 0x2078]
mov dword [ebx + 0x38], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
and eax, 0x80
je 0x4dfcac
mov dword [ebp - 0x207c], 1
jmp 0x4dfcb6
mov dword [ebp - 0x207c], 0
mov eax, dword [ebp - 0x207c]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x1c]
and eax, 0x100
je 0x4dfcd5
mov dword [ebp - 0x2080], 1
jmp 0x4dfcdf
mov dword [ebp - 0x2080], 0
mov eax, dword [ebp - 0x2080]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0x1c]
and eax, 0x400
je 0x4dfcfe
mov dword [ebp - 0x2084], 1
jmp 0x4dfd08
mov dword [ebp - 0x2084], 0
mov eax, dword [ebp - 0x2084]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp + 0x1c]
and eax, 0x8000
je 0x4dfd27
mov dword [ebp - 0x2088], 1
jmp 0x4dfd31
mov dword [ebp - 0x2088], 0
mov eax, dword [ebp - 0x2088]
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x74], 0
lea eax, [ebp - 0x2018]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x44]
lea eax, [eax + 0x340]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x1c]
and eax, 0x700000
jne 0x4dfd7b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2090], eax
jmp 0x4dfd84
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2090], eax
mov eax, dword [ebp - 0x2090]
and eax, 0x700000
mov dword [ebp - 0x208c], eax
cmp eax, 0x200000
je 0x4dfe05
jg 0x4dfdc6
mov eax, dword [ebp - 0x208c]
test eax, eax
je 0x4dfdf3
test eax, eax
jl 0x4dfe26
mov eax, dword [ebp - 0x208c]
cmp eax, 0x100000
je 0x4dfdfc
jmp 0x4dfe26
mov eax, dword [ebp - 0x208c]
cmp eax, 0x400000
je 0x4dfe17
jg 0x4dfde4
mov eax, dword [ebp - 0x208c]
cmp eax, 0x300000
je 0x4dfe0e
jmp 0x4dfe26
mov eax, dword [ebp - 0x208c]
cmp eax, 0x500000
je 0x4dfe1d
jmp 0x4dfe26
mov dword [ebp - 0x58], 0xa
jmp 0x4dfe30
mov dword [ebp - 0x58], 0xd
jmp 0x4dfe30
mov dword [ebp - 0x58], 0xa
jmp 0x4dfe30
mov dword [ebp - 0x58], 0xd0a
jmp 0x4dfe30
or dword [ebp - 0x58], 0xffffffff
jmp 0x4dfe30
mov dword [ebp - 0x58], 0xfffffffe
jmp 0x4dfe30
mov eax, 0xffffffe9
jmp 0x4e0749
cmp dword [ebp - 0x58], 0xfffffffe
jne 0x4dfe3f
mov dword [ebx + 0x18], 2
jmp 0x4dfe8d
cmp dword [ebp - 0x58], 0
jge 0x4dfe4e
mov dword [ebx + 0x18], 1
jmp 0x4dfe8d
mov dword [ebx + 0x18], 0
cmp dword [ebp - 0x58], 0xff
jle 0x4dfe80
mov dword [ebx + 0x1c], 2
mov eax, dword [ebp - 0x58]
sar eax, 8
and eax, 0xff
mov byte [ebx + 0x20], al
mov eax, dword [ebp - 0x58]
and eax, 0xff
mov byte [ebx + 0x21], al
jmp 0x4dfe8d
mov dword [ebx + 0x1c], 1
mov eax, dword [ebp - 0x58]
mov byte [ebx + 0x20], al
cmp dword [ebx + 0x44], 0
je 0x4dfeaa
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
and eax, 0x80000000
je 0x4dfeaa
mov eax, 0xfffffff3
jmp 0x4e0749
cmp dword [ebp - 8], 0
je 0x4dff2a
mov eax, dword [ebp + 0x1c]
and eax, 0x2000
jne 0x4dff2a
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004e8200
add esp, 8
test eax, eax
jl 0x4dfee0
mov eax, 0xfffffff6
jmp 0x4e0749
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x4dff2a
cmp eax, dword [ebp + 0x14]
jge 0x4dff2a
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + eax]
mov dword [ebp - 0x2094], eax
cmp dword [ebp - 0x2094], 0x7f
jle 0x4dff2a
and dword [ebp - 0x2094], 0xc0
mov eax, dword [ebp - 0x2094]
test eax, eax
je 0x4dff2a
cmp eax, 0xc0
je 0x4dff2a
mov eax, 0xfffffff5
jmp 0x4e0749
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
and eax, 7
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2094], eax
mov ecx, 3
cdq
idiv ecx
mov ecx, dword [ebp - 0x2094]
sub ecx, edx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x12]
mov dword [ebp - 0x2098], eax
test eax, eax
jle 0x4dffad
mov eax, dword [ebp - 0x40]
mov ecx, 3
cdq
idiv ecx
mov ecx, dword [ebp - 0x2098]
cmp ecx, eax
jl 0x4dffad
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x12]
imul eax, eax, 3
lea eax, [eax + 3]
mov dword [ebp - 0x40], eax
shl eax, 2
push eax
call dword [0x7c3750]
pop ecx
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x4dffa4
mov eax, 0xfffffffa
jmp 0x4e0749
mov dword [ebp - 0x54], 1
jmp 0x4dffb3
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x40]
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x2c], 0
or dword [ebx + 0x64], 0xffffffff
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x10]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
cmp dword [ebp - 0x34], eax
jle 0x4dfff0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4e004c
mov eax, dword [ebp - 0x40]
mov edx, dword [ebx + 0xc]
lea eax, [edx + eax*4]
mov dword [ebp - 0x209c], eax
mov dword [ebp - 0x20a4], eax
mov eax, dword [ebp - 0x34]
cdq
sub eax, edx
sar eax, 1
shl eax, 2
mov edx, dword [ebp - 0x20a4]
sub edx, eax
lea eax, [edx + 4]
mov dword [ebp - 0x20a0], eax
jmp 0x4e0033
mov eax, dword [ebp - 0x209c]
or dword [eax], 0xffffffff
mov eax, dword [ebp - 0x209c]
lea eax, [eax - 4]
mov dword [ebp - 0x209c], eax
mov edx, dword [ebp - 0x20a0]
cmp eax, edx
jae 0x4e002a
cmp dword [ebp - 0x28], 0
jne 0x4e00d3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
and eax, 0x40000000
je 0x4e00b3
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x14]
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x14]
and eax, 0x100
je 0x4e008c
mov dword [ebp - 0x209c], 1
jmp 0x4e0096
mov dword [ebp - 0x209c], 0
mov eax, dword [ebp - 0x209c]
mov dword [ebp - 0x3c], eax
cmp eax, 1
jne 0x4e00d3
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x24]
movzx eax, byte [edx + eax]
mov dword [ebp - 0xc], eax
jmp 0x4e00d3
cmp dword [ebp - 0x38], 0
jne 0x4e00d3
mov eax, dword [ebp - 0x50]
mov edx, eax
test edx, edx
je 0x4e00d3
mov eax, dword [eax + 4]
and eax, 1
je 0x4e00d3
mov eax, dword [ebp - 0x50]
lea eax, [eax + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
and eax, 0x20000000
je 0x4e012d
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x16]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x16]
and eax, 0x100
je 0x4e0109
mov dword [ebp - 0x209c], 1
jmp 0x4e0113
mov dword [ebp - 0x209c], 0
mov eax, dword [ebp - 0x209c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x44]
movzx eax, byte [edx + eax + 0x100]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x209c], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4e017c
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20a0], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20a0]
lea eax, [edx + eax*4]
mov dword [ebp - 0x20a4], eax
jmp 0x4e016c
mov eax, dword [ebp - 0x20a0]
lea edx, [eax + 4]
mov dword [ebp - 0x20a0], edx
or dword [eax], 0xffffffff
mov eax, dword [ebp - 0x20a0]
mov edx, dword [ebp - 0x20a4]
cmp eax, edx
jb 0x4e015a
cmp dword [ebp - 0x1c], 0
je 0x4e0283
mov dword [ebp - 0x20a0], esi
jmp 0x4e0194
inc dword [ebp - 0x20a0]
mov eax, dword [ebp - 0x20a0]
mov edx, dword [ebx + 0x54]
cmp eax, edx
jae 0x4e027a
cmp dword [ebx + 0x18], 0
je 0x4e0209
mov eax, dword [ebp - 0x20a0]
mov dword [ebp - 0x20b0], eax
mov edx, dword [ebx + 0x54]
mov ecx, eax
mov eax, edx
cmp ecx, eax
jae 0x4e01ee
mov eax, dword [ebp - 8]
push eax
lea eax, [ebx + 0x1c]
push eax
push edx
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebp - 0x20b0]
push eax
call fcn.004e7db0
add esp, 0x14
test eax, eax
je 0x4e01ee
mov dword [ebp - 0x20a8], 1
jmp 0x4e01f8
mov dword [ebp - 0x20a8], 0
mov eax, dword [ebp - 0x20a8]
mov dword [ebp - 0x20a4], eax
jmp 0x4e026d
mov eax, dword [ebp - 0x20a0]
mov dword [ebp - 0x20b4], eax
mov edx, dword [ebx + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0x54]
sub eax, edx
cmp ecx, eax
ja 0x4e0257
mov eax, dword [ebp - 0x20b4]
movzx eax, byte [eax]
movzx ecx, byte [ebx + 0x20]
cmp eax, ecx
jne 0x4e0257
cmp edx, 1
je 0x4e024b
mov eax, dword [ebp - 0x20b4]
movzx eax, byte [eax + 1]
movzx edx, byte [ebx + 0x21]
cmp eax, edx
jne 0x4e0257
mov dword [ebp - 0x20ac], 1
jmp 0x4e0261
mov dword [ebp - 0x20ac], 0
mov eax, dword [ebp - 0x20ac]
mov dword [ebp - 0x20a4], eax
cmp dword [ebp - 0x20a4], 0
je 0x4e018e
mov eax, dword [ebp - 0x20a0]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jl 0x4e02c6
cmp dword [ebp - 0x3c], 0
je 0x4e02b0
jmp 0x4e0292
inc esi
mov eax, esi
mov edx, dword [ebp - 4]
cmp eax, edx
jae 0x4e02aa
movzx eax, byte [esi]
mov edx, dword [ebx + 0x24]
movzx eax, byte [edx + eax]
cmp eax, dword [ebp - 0xc]
jne 0x4e0291
jmp 0x4e041e
inc esi
mov eax, esi
mov edx, dword [ebp - 4]
cmp eax, edx
jae 0x4e02c1
movzx eax, byte [esi]
cmp eax, dword [ebp - 0xc]
jne 0x4e02af
jmp 0x4e041e
cmp dword [ebp - 0x38], 0
je 0x4e03da
mov eax, esi
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebx + 0x50]
add edx, ecx
cmp eax, edx
jbe 0x4e041e
jmp 0x4e02e5
inc esi
mov eax, esi
mov edx, dword [ebp - 4]
cmp eax, edx
ja 0x4e03ac
cmp dword [ebx + 0x18], 0
je 0x4e0341
mov eax, dword [ebx + 0x50]
mov edx, esi
mov ecx, eax
cmp edx, ecx
jbe 0x4e0329
mov edx, dword [ebp - 8]
push edx
lea edx, [ebx + 0x1c]
push edx
push eax
mov eax, dword [ebx + 0x18]
push eax
push esi
call fcn.004e7f40
add esp, 0x14
test eax, eax
je 0x4e0329
mov dword [ebp - 0x20a4], 1
jmp 0x4e0333
mov dword [ebp - 0x20a4], 0
mov eax, dword [ebp - 0x20a4]
mov dword [ebp - 0x20a0], eax
jmp 0x4e039f
mov eax, dword [ebx + 0x1c]
mov edx, esi
mov ecx, dword [ebx + 0x50]
add ecx, eax
cmp edx, ecx
jb 0x4e0389
mov edx, eax
neg edx
mov dword [ebp - 0x20ac], edx
movzx ecx, byte [esi + edx]
movzx edx, byte [ebx + 0x20]
cmp ecx, edx
jne 0x4e0389
cmp eax, 1
je 0x4e037d
mov eax, dword [ebp - 0x20ac]
movzx eax, byte [esi + eax + 1]
movzx edx, byte [ebx + 0x21]
cmp eax, edx
jne 0x4e0389
mov dword [ebp - 0x20a8], 1
jmp 0x4e0393
mov dword [ebp - 0x20a8], 0
mov eax, dword [ebp - 0x20a8]
mov dword [ebp - 0x20a0], eax
cmp dword [ebp - 0x20a0], 0
je 0x4e02e4
movzx eax, byte [esi - 1]
cmp eax, 0xd
jne 0x4e041e
mov eax, dword [ebx + 0x18]
cmp eax, 1
je 0x4e03c6
cmp eax, 2
jne 0x4e041e
mov eax, esi
mov edx, dword [ebp - 4]
cmp eax, edx
jae 0x4e041e
movzx eax, byte [esi]
cmp eax, 0xa
jne 0x4e041e
inc esi
jmp 0x4e041e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4e041e
jmp 0x4e0415
movzx eax, byte [esi]
mov dword [ebp - 0x20a0], eax
mov edx, eax
shr edx, 3
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx]
mov ecx, 1
mov dword [ebp - 0x20a4], ecx
and eax, 7
mov ecx, eax
mov eax, dword [ebp - 0x20a4]
shl eax, cl
and edx, eax
jne 0x4e041e
inc esi
mov eax, esi
mov edx, dword [ebp - 4]
cmp eax, edx
jb 0x4e03e3
mov eax, dword [ebp - 0x209c]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
jl 0x4e0511
mov eax, dword [ebp - 4]
mov edx, esi
sub eax, edx
cmp eax, 0x3e8
jge 0x4e0511
cmp dword [ebx + 0x44], 0
jne 0x4e0511
cmp dword [ebp - 0xc], 0
jl 0x4e045f
mov dword [ebp - 0x20a4], 1
jmp 0x4e0469
mov dword [ebp - 0x20a4], 0
mov eax, dword [ebp - 0x20a4]
add eax, esi
mov dword [ebp - 0x20a0], eax
mov edx, dword [ebp - 0x30]
cmp eax, edx
jbe 0x4e0511
cmp dword [ebp - 0x48], 0
je 0x4e04e2
jmp 0x4e04b4
mov eax, dword [ebp - 0x20a0]
lea edx, [eax + 1]
mov dword [ebp - 0x20a0], edx
movzx eax, byte [eax]
mov dword [ebp - 0x20a8], eax
cmp eax, dword [ebp - 0x10]
je 0x4e04ac
cmp eax, dword [ebp - 0x24]
jne 0x4e04b4
dec dword [ebp - 0x20a0]
jmp 0x4e04ef
mov eax, dword [ebp - 0x20a0]
mov edx, dword [ebp - 4]
cmp eax, edx
jb 0x4e048a
jmp 0x4e04ef
mov eax, dword [ebp - 0x20a0]
lea edx, [eax + 1]
mov dword [ebp - 0x20a0], edx
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x10]
jne 0x4e04e2
dec dword [ebp - 0x20a0]
jmp 0x4e04ef
mov eax, dword [ebp - 0x20a0]
mov edx, dword [ebp - 4]
cmp eax, edx
jb 0x4e04c3
mov eax, dword [ebp - 0x20a0]
mov edx, dword [ebp - 4]
cmp eax, edx
jb 0x4e0508
mov dword [ebp - 0x14], 0
jmp 0x4e0670
mov eax, dword [ebp - 0x20a0]
mov dword [ebp - 0x30], eax
mov dword [ebx + 0x58], esi
mov dword [ebx], 0
mov dword [ebx + 0x70], 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
push ebx
push 2
mov eax, dword [ebx + 0x4c]
push eax
push esi
call fcn.004d7a80
add esp, 0x20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4e0670
cmp dword [ebp - 0x1c], 0
je 0x4e05fa
cmp dword [ebx + 0x18], 0
je 0x4e05a1
mov eax, dword [ebx + 0x54]
mov edx, esi
mov ecx, eax
cmp edx, ecx
jae 0x4e0589
mov edx, dword [ebp - 8]
push edx
lea edx, [ebx + 0x1c]
push edx
push eax
mov eax, dword [ebx + 0x18]
push eax
push esi
call fcn.004e7db0
add esp, 0x14
test eax, eax
je 0x4e0589
mov dword [ebp - 0x20a4], 1
jmp 0x4e0593
mov dword [ebp - 0x20a4], 0
mov eax, dword [ebp - 0x20a4]
mov dword [ebp - 0x20a0], eax
jmp 0x4e05ed
mov eax, dword [ebx + 0x1c]
mov edx, esi
mov ecx, dword [ebx + 0x54]
sub ecx, eax
cmp edx, ecx
ja 0x4e05d7
movzx edx, byte [esi]
movzx ecx, byte [ebx + 0x20]
cmp edx, ecx
jne 0x4e05d7
cmp eax, 1
je 0x4e05cb
movzx eax, byte [esi + 1]
movzx edx, byte [ebx + 0x21]
cmp eax, edx
jne 0x4e05d7
mov dword [ebp - 0x20a8], 1
jmp 0x4e05e1
mov dword [ebp - 0x20a8], 0
mov eax, dword [ebp - 0x20a8]
mov dword [ebp - 0x20a0], eax
cmp dword [ebp - 0x20a0], 0
jne 0x4e0670
inc esi
cmp dword [ebp - 8], 0
je 0x4e061c
jmp 0x4e0604
inc esi
mov eax, esi
mov edx, dword [ebp - 4]
cmp eax, edx
jae 0x4e061c
movzx eax, byte [esi]
and eax, 0xc0
cmp eax, 0x80
je 0x4e0603
cmp dword [ebp - 0x28], 0
jne 0x4e062b
mov eax, esi
mov edx, dword [ebp - 4]
cmp eax, edx
jbe 0x4e062d
jmp 0x4e0670
movzx eax, byte [esi - 1]
cmp eax, 0xd
jne 0x4e012d
mov eax, dword [ebx + 0x18]
cmp eax, 1
je 0x4e0651
cmp eax, 2
je 0x4e0651
cmp dword [ebx + 0x1c], 2
jne 0x4e012d
mov eax, esi
mov edx, dword [ebp - 4]
cmp eax, edx
jae 0x4e012d
movzx eax, byte [esi]
cmp eax, 0xa
jne 0x4e012d
inc esi
jmp 0x4e012d
cmp dword [ebp - 0x14], 1
jne 0x4e0717
cmp dword [ebp - 0x54], 0
je 0x4e06c0
cmp dword [ebp + 0x24], 4
jl 0x4e06a6
mov eax, dword [ebp + 0x24]
lea eax, [eax - 2]
shl eax, 2
push eax
mov eax, dword [ebx + 0xc]
lea eax, [eax + 8]
push eax
mov eax, dword [ebp + 0x20]
lea eax, [eax + 8]
push eax
call fcn.00531d20
add esp, 0xc
mov eax, dword [ebp + 0x24]
cmp dword [ebx + 0x60], eax
jle 0x4e06b5
mov dword [ebx + 0x2c], 1
mov eax, dword [ebx + 0xc]
push eax
call dword [0x7c3754]
pop ecx
cmp dword [ebx + 0x2c], 0
je 0x4e06d2
mov dword [ebp - 0x209c], 0
jmp 0x4e06e0
mov eax, dword [ebx + 0x60]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x209c], eax
mov eax, dword [ebp - 0x209c]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x24], 2
jge 0x4e06f8
mov dword [ebp - 0x14], 0
jmp 0x4e0712
mov eax, dword [ebp + 0x20]
mov edx, esi
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
jmp 0x4e0749
cmp dword [ebp - 0x54], 0
je 0x4e0728
mov eax, dword [ebx + 0xc]
push eax
call dword [0x7c3754]
pop ecx
cmp dword [ebp - 0x14], 0
je 0x4e0733
mov eax, dword [ebp - 0x14]
jmp 0x4e0749
cmp dword [ebx + 0x44], 0
je 0x4e0746
cmp dword [ebx + 0x48], 0
je 0x4e0746
mov eax, 0xfffffff4
jmp 0x4e0749
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret