Function at 0x4d1d30
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x38], ebx
mov ecx, dword [ebp + 8]
mov edi, ecx
and edi, 0xfffffffe
test ecx, 0x1ff
je 0x4d21b8
sub edi, 4
push edi
push ebx
lea eax, [ebx + edi]
mov dword [ebp - 0x3c], eax
call fcn.0052b640
mov ecx, dword [ebp - 0x3c]
add esp, 8
cmp eax, dword [ecx]
je 0x4d1d83
mov edi, 0x5e
jmp 0x4d21ee
test dword [esi + 0x298], 0x100000
je 0x4d1da8
push edi
push ebx
lea ecx, [esi + 0x934]
call fcn.0047c4a0
test eax, eax
jne 0x4d1da8
lea edi, [eax + 2]
jmp 0x4d21ee
push 0
mov ecx, esi
mov dword [ebp - 0x40], 0
call fcn.004d8770
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x4d1dde
cmp edi, 0x4a
jne 0x4d21ee
test byte [esi + 0x298], 0x10
je 0x4d21ee
mov dword [ebp - 0x40], 1
mov edi, dword [ebx]
mov ebx, edi
and ebx, 0xfffffff
and edi, 0xf0000000
je 0x4d20a4
cmp dword [0x64f3fc], 0
jle 0x4d1e1d
test dword [esi + 0x298], 0x806
je 0x4d1e1d
cmp edi, 0x10000000
je 0x4d1e19
cmp edi, 0x40000000
jne 0x4d1e1d
mov al, 1
jmp 0x4d1e1f
xor al, al
cmp dword [0x64f3e4], 0
mov byte [ebp - 0x2d], al
je 0x4d1e61
test al, al
jne 0x4d1e61
mov eax, dword [esi + 0x298]
test al, 6
je 0x4d1e61
test eax, 0x10010
jne 0x4d1e61
cmp edi, 0x80000000
je 0x4d1f69
push 0
push ebx
mov ecx, esi
call fcn.004d8480
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x4d21eb
cmp edi, 0x80000000
jne 0x4d1faf
mov eax, dword [esi + 0x298]
test eax, 0x30600
jne 0x4d1faf
test al, 0x10
jne 0x4d206c
test eax, 0x40000
je 0x4d1f0a
test ebx, ebx
je 0x4d1f0a
mov edi, dword [esi + 0x874]
xor ecx, ecx
mov edx, dword [esi + 0x878]
mov eax, ebx
add eax, edi
mov dword [ebp - 0x18], edi
push 0x10
adc ecx, edx
mov dword [ebp - 0x14], edx
add eax, 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
adc ecx, 0xffffffff
push 0
mov dword [ebp - 0xc], ecx
call dword [0x644e78]
mov ecx, dword [esi + 0x7e4]
add esp, 0xc
mov dword [ebp - 8], eax
lea eax, [esi + 0x8e4]
push 4
push eax
call fcn.004983b0
mov edi, eax
test edi, edi
jne 0x4d21ee
mov ecx, dword [esi + 0x7e4]
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004983b0
mov edi, eax
test edi, edi
jne 0x4d21ee
mov dword [esi + 0x8e4], eax
cmp dword [esi + 0x9d0], 0
je 0x4d1f29
mov dword [esi + 0x8a4], ebx
test ebx, ebx
je 0x4d1f29
push dword [esi + 0x980]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
sub edi, eax
push edi
push eax
push dword [esi + 0x908]
call fcn.005c9900
mov eax, dword [esi + 0x908]
add esp, 0xc
add edi, eax
mov dword [ebp - 0x38], eax
mov ecx, esi
mov dword [ebp - 0x3c], edi
push ebx
call fcn.004cf3a0
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x4d21ee
jmp 0x4d207c
test eax, 0x20000
je 0x4d1e6d
mov eax, dword [0x650ce0]
mov ecx, dword [0x650ce4]
add eax, ebx
mov dword [0x650ce0], eax
adc ecx, 0
mov dword [0x650ce4], ecx
mov eax, dword [0x650cf0]
mov ecx, dword [0x650cf4]
add eax, ebx
mov dword [0x650cf0], eax
adc ecx, 0
mov dword [0x650cf4], ecx
jmp 0x4d1e6d
cmp dword [0x651718], 0
je 0x4d1fff
cmp edi, 0x10000000
je 0x4d1fff
test byte [esi + 0x298], 6
je 0x4d1fff
mov eax, dword [0x650ce0]
mov ecx, dword [0x650ce4]
add eax, ebx
mov dword [0x650ce0], eax
adc ecx, 0
mov dword [0x650ce4], ecx
mov eax, dword [0x650cf0]
mov ecx, dword [0x650cf4]
add eax, ebx
mov dword [0x650cf0], eax
adc ecx, 0
mov dword [0x650cf4], ecx
cmp edi, 0x20000000
jne 0x4d2013
or dword [0x64f474], 0x8000
jmp 0x4d2055
cmp edi, 0x70000000
je 0x4d204b
cmp edi, 0x30000000
jne 0x4d202f
or dword [0x64f474], 0x4000
jmp 0x4d2055
cmp edi, 0xa0000000
jne 0x4d2043
or dword [0x64f474], 0x1000
jmp 0x4d2055
cmp edi, 0xb0000000
jne 0x4d2055
or dword [0x64f474], 0x2000
cmp byte [ebp - 0x2d], 0
je 0x4d2150
add dword [esi + 0x88c], ebx
adc dword [esi + 0x890], 0
mov edi, dword [ebp - 0x34]
add dword [esi + 0x874], ebx
adc dword [esi + 0x878], 0
mov eax, dword [ebp - 0x38]
add eax, 4
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x3c]
je 0x4d21ee
mov edi, dword [eax]
mov ebx, edi
and ebx, 0xfffffff
and edi, 0xf0000000
jne 0x4d1df4
cmp dword [esi + 0x9d0], 0
je 0x4d20c3
mov dword [esi + 0x8a4], ebx
test ebx, ebx
je 0x4d20c3
push dword [esi + 0x980]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test dword [esi + 0x298], 0x40000
je 0x4d21a8
test ebx, ebx
je 0x4d21a8
mov edx, dword [esi + 0x874]
xor eax, eax
mov ecx, dword [esi + 0x878]
add ebx, edx
push 0x10
adc eax, ecx
mov dword [ebp - 0x2c], edx
add ebx, 0xffffffff
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ebx
adc eax, 0xffffffff
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push 0
call dword [0x644e78]
mov ecx, dword [esi + 0x7e4]
lea ebx, [esi + 0x8e4]
add esp, 0xc
mov dword [ebp - 0x1c], eax
push 4
push ebx
call fcn.004983b0
mov edi, eax
test edi, edi
jne 0x4d21ee
mov ecx, dword [esi + 0x7e4]
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.004983b0
mov edi, eax
test edi, edi
jne 0x4d21ee
mov dword [ebx], eax
jmp 0x4d21ab
cmp dword [0x64f3fc], 0
jle 0x4d206c
test byte [esi + 0x298], 6
je 0x4d206c
mov edi, dword [esi + 0x874]
mov ecx, edi
mov edx, dword [esi + 0x878]
mov eax, edx
sub ecx, dword [esi + 0x88c]
push 0
sbb eax, dword [esi + 0x890]
push ebx
push eax
push ecx
push edx
push edi
push 0x64f65c
call fcn.00527370
mov edi, eax
add esp, 0x1c
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x4d21ee
jmp 0x4d206f
mov edi, dword [ebp - 0x34]
cmp dword [ebp - 0x40], 0
je 0x4d21ee
mov edi, 0x4a
jmp 0x4d21ee
mov eax, dword [esi + 0x170]
mov eax, dword [eax + 4]
dec eax
test ecx, eax
jne 0x4d1d79
mov eax, dword [esi + 0x8d8]
cmp ebx, eax
je 0x4d21df
push edi
push ebx
push eax
call fcn.005c9900
add esp, 0xc
push edi
mov ecx, esi
call fcn.004d8770
mov edi, eax
jmp 0x4d21ee
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret 8