Function at 0x49bda0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e678
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x20], edi
mov eax, dword [edi + 0xc]
add eax, 0x30
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
je 0x49bdf1
mov ecx, eax
call fcn.0045ff70
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
nop dword [eax + eax]
mov ebx, dword [edi + 0x10]
mov dword [edi + 0x10], 0
nop word [eax + eax]
test ebx, ebx
je 0x49be74
mov esi, dword [ebx + 4]
test al, 1
je 0x49be2e
and eax, 0xfffffffe
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
and eax, 0xfffffffe
mov ecx, eax
call fcn.004604f0
mov eax, dword [ebx]
mov ecx, ebx
mov byte [ebp - 4], 1
call dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test eax, eax
je 0x49be60
test al, 1
jne 0x49be60
and eax, 0xfffffffe
mov ecx, eax
call fcn.0045ff70
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
cmp esi, 0xffffffff
je 0x49be74
add dword [ebx + 4], 0xffffffff
jne 0x49be74
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
mov ebx, dword [edi + 0xc]
mov edx, dword [ebx + 0x38]
lea eax, [ebx + 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x3c]
mov ecx, dword [eax + 0xc]
sub ecx, dword [esi + 0xc]
sub ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
add eax, ecx
mov ecx, dword [esi + 8]
mov esi, dword [ebx + 0x4c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
lea edx, [ecx + eax]
mov ecx, dword [ebx + 0x50]
lea eax, [edx + ecx]
cmp eax, esi
jle 0x49beb2
cmp edx, 1
jg 0x49bebf
mov eax, dword [ebx + 0x40]
cmp dword [eax + 4], 0
jne 0x49c011
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x28]
add eax, ecx
cmp eax, esi
jle 0x49bed6
sub eax, ecx
cmp eax, 1
jg 0x49bfcb
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x28], edi
call fcn.00415330
mov eax, dword [edi + 0xc]
add dword [eax + 0x54], 0xffffffff
jne 0x49befd
mov ecx, dword [edi + 0xc]
add ecx, 0x44
call fcn.004c5900
mov eax, dword [edi + 0xc]
lea ecx, [edi + 8]
push dword [eax + 0x48]
mov eax, dword [ebp - 0x18]
and eax, 0xfffffffe
push eax
call fcn.004c5860
mov eax, dword [edi + 0xc]
inc dword [eax + 0x54]
mov ebx, dword [edi + 0xc]
mov ecx, dword [ebx + 0x38]
mov esi, dword [ecx + 0xc]
mov eax, esi
mov edx, dword [ecx + 8]
sub eax, edx
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x49bf95
add esi, 4
lea eax, [ecx + esi*4]
lea esi, [ecx + 0x10]
lea esi, [esi + edx*4]
cmp esi, eax
je 0x49bf95
nop
cmp dword [esi], edi
je 0x49bf4d
add esi, 4
cmp esi, eax
jne 0x49bf40
jmp 0x49bf95
lea eax, [edx*4 + 0x10]
sub esi, eax
sub esi, ecx
sar esi, 2
cmp esi, 0xffffffff
je 0x49bf95
test esi, esi
js 0x49bf91
cmp esi, dword [ebp - 0x2c]
jge 0x49bf91
mov eax, dword [ecx]
cmp eax, 1
je 0x49bf82
test eax, eax
je 0x49bf82
mov eax, dword [ebx + 0x38]
lea ecx, [ebx + 0x38]
push dword [eax + 4]
call fcn.00415a50
push esi
lea ecx, [ebx + 0x38]
call fcn.00420030
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], 1
mov ebx, dword [edi + 0xc]
xor eax, eax
mov esi, dword [ebx + 0x34]
lea ecx, [ebx + 0x34]
mov dword [ebp - 0x2c], edi
cmp dword [esi + 0x18], eax
je 0x49bfad
mov eax, dword [esi + 0x1c]
xor eax, edi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00471460
cmp dword [eax], esi
jne 0x49bfc1
add dword [ebx + 0x54], 0xffffffff
jmp 0x49bfe1
cmp byte [ebp - 0x11], 0
je 0x49c13a
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
lea ecx, [ebx + 0x3c]
call fcn.00415330
mov eax, dword [edi + 0xc]
add dword [eax + 0x54], 0xffffffff
jne 0x49bfee
mov ecx, dword [edi + 0xc]
add ecx, 0x44
call fcn.004c5900
mov eax, dword [ebp - 0x18]
test al, 1
je 0x49bfff
and eax, 0xfffffffe
mov ecx, eax
call fcn.004604f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
cmp eax, 1
je 0x49c050
test eax, eax
je 0x49c050
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x49c03e
push 2
push ecx
push 4
push 4
call fcn.00401560
add esp, 0x10
mov dword [ebx + 0x40], eax
jmp 0x49c050
push ecx
mov eax, esp
push ecx
lea ecx, [ebx + 0x40]
mov dword [eax], 0
call fcn.004089a0
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x18], edx
mov eax, dword [edx + 4]
mov ebx, dword [edx + eax*4 + 0xc]
mov dword [edx + eax*4 + 0xc], 0
mov ecx, dword [edx + 4]
mov esi, dword [edx + 8]
lea eax, [ecx + 1]
mov dword [edx + 4], eax
cmp ecx, esi
jge 0x49c09b
mov esi, eax
lea ecx, [edx + 0xc]
lea ecx, [ecx + esi*4]
cmp dword [ecx], 0
jne 0x49c098
lea eax, [esi + 1]
add ecx, 4
mov esi, eax
mov dword [edx + 4], eax
cmp eax, dword [edx + 8]
jle 0x49c083
mov esi, dword [edx + 8]
cmp eax, esi
jg 0x49c0aa
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x49be10
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 0x40]
test dword [eax + 8], 0x7fffffff
je 0x49c121
mov eax, dword [eax]
cmp eax, 1
je 0x49c0f8
test eax, eax
je 0x49c0f8
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x49c0e6
push 2
push ecx
push 4
push 4
call fcn.00401560
add esp, 0x10
mov dword [esi + 0x40], eax
jmp 0x49c0f8
push ecx
mov eax, esp
push ecx
lea ecx, [esi + 0x40]
mov dword [eax], 0
call fcn.004089a0
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0xc]
add ecx, eax
mov eax, dword [eax + 4]
lea eax, [eax*4 - 4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.00522f40
mov eax, dword [esi + 0x40]
add esp, 0xc
mov edx, dword [ebp - 0x18]
dec dword [eax + 4]
push 0x40c
push edx
call fcn.00521027
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 0x18], eax
jmp 0x49be10
mov eax, dword [ebp - 0x18]
jmp 0x49be00