Function at 0x4b6070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52c567
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0xec]
mov dword [esp + 0xe4], 0
lea edi, [esi + 0xc]
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x394]
test eax, eax
jne 0x4b60d4
mov eax, dword [esi + 0x248]
cmp eax, 0x20003
je 0x4b60d4
cmp eax, 0x10002
je 0x4b60d4
xor ebx, ebx
jmp 0x4b60d9
mov ebx, 1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
test ebx, ebx
jne 0x4b6cac
mov eax, dword [0x569c90]
mov ebp, 0x10001
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0xf4]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
lea edx, [ebx + 0xc]
mov byte [esp + 0xe8], 1
push edx
call fcn.00507aaf
call fcn.00499f70
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0xd0]
mov ecx, ebx
push eax
mov dword [esp + 0x20], edx
call fcn.0040d740
lea ecx, [esp + 0x34]
call fcn.004608a0
lea ecx, [edi + 8]
mov dword [esp + 0x10], edi
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esi + 0x34]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0xe8], 3
call fcn.00461150
mov eax, dword [edi]
mov ecx, edi
mov byte [esp + 0xe4], 2
call dword [eax + 0x14]
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x4b6559
push 3
lea ecx, [esp + 0x14]
push 1
push ecx
push 1
push eax
push ecx
lea ebp, [ebx + 4]
mov ecx, esp
mov dword [esp + 0x28], esp
push ebp
call fcn.00507aaf
mov ecx, dword [esp + 0x48]
push esi
call fcn.004acc90
lea edx, [edi + 8]
mov dword [esp + 0x10], eax
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov ebx, dword [esi + 0xb8]
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [esp + 0xf8]
push ecx
push ebx
lea ecx, [esp + 0x20]
call fcn.0040dc00
push 1
push ecx
mov bl, 4
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebp
mov byte [esp + 0xf0], bl
call fcn.00507aaf
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
push edx
call fcn.0040dde0
lea eax, [edi + 8]
mov byte [esp + 0xe4], 5
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x394]
test eax, eax
jne 0x4b6227
mov eax, dword [esi + 0x248]
cmp eax, 0x20003
je 0x4b6227
cmp eax, 0x10002
je 0x4b6227
xor ebp, ebp
jmp 0x4b622c
mov ebp, 1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
test ebp, ebp
je 0x4b62d8
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], bl
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 2
call fcn.00507d3a
lea eax, [esp + 0x98]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe4], 0xb
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0xa
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 9
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 8
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 7
call fcn.00507d3a
mov byte [esp + 0xe4], 6
jmp 0x4b6c81
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4b64ac
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xf0]
push 0
push ecx
mov ecx, dword [esp + 0x38]
push edx
push esi
call fcn.004ab320
mov ecx, dword [esp + 0x14]
mov ebp, eax
push 0
lea eax, [esp + 0x38]
push 0x56e1f4
push eax
push ecx
call fcn.00409ba0
mov eax, dword [esp + 0x108]
push 0
lea edx, [esp + 0x48]
push 0x56e1f4
push edx
push eax
call fcn.00409ba0
mov ecx, ebp
add esp, 0x20
and ecx, 0xffff0000
mov byte [esp + 0xe4], bl
cmp ecx, 0x10000
lea ecx, [esp + 0x14]
je 0x4b63df
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 2
call fcn.00507d3a
lea edx, [esp + 0x98]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe4], 0x11
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0x10
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 0xf
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0xe
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0xd
call fcn.00507d3a
mov byte [esp + 0xe4], 0xc
jmp 0x4b644d
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 2
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0x45
call fcn.00406c60
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 0x44
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0x43
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0x42
call fcn.00507d3a
mov byte [esp + 0xe4], 0x41
lea ecx, [esp + 0x70]
call fcn.00404e10
lea ecx, [esp + 0x38]
mov byte [esp + 0xe4], 1
call fcn.00404d90
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0
call fcn.00507d3a
lea ecx, [esp + 0xf8]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00507d3a
mov eax, ebp
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd8
ret 0x30
push 1
push 2
push 0x146e
mov ecx, esi
call fcn.004d2030
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], bl
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 2
call fcn.00507d3a
lea eax, [esp + 0x98]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe4], 0x17
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0x16
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 0x15
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0x14
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0x13
call fcn.00507d3a
mov byte [esp + 0xe4], 0x12
jmp 0x4b6698
cmp eax, 1
jne 0x4b67cf
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push eax
push ecx
lea ebp, [ebx + 4]
mov ecx, esp
mov dword [esp + 0x28], esp
push ebp
call fcn.00507aaf
mov ecx, dword [esp + 0x48]
push esi
call fcn.004acc90
lea edx, [edi + 8]
mov ebx, eax
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xb8]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x10], eax
call dword [edx + 0x14]
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0040dc00
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
mov byte [esp + 0xf0], 0x18
call fcn.00507aaf
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
push edx
call fcn.0040dde0
test ebx, ebx
mov byte [esp + 0xe4], 0x19
jne 0x4b66e4
push 1
push 2
push 0x146e
mov ecx, esi
call fcn.004d2030
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x18
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 2
call fcn.00507d3a
lea eax, [esp + 0x98]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe4], 0x1f
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0x1e
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 0x1d
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0x1c
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0x1b
call fcn.00507d3a
mov byte [esp + 0xe4], 0x1a
lea ecx, [esp + 0x70]
call fcn.00404e10
lea ecx, [esp + 0x38]
mov byte [esp + 0xe4], 1
call fcn.00404d90
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0
call fcn.00507d3a
lea ecx, [esp + 0xf8]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00507d3a
mov eax, 0x20001
jmp 0x4b6491
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00507aaf
mov ecx, dword [esp + 0xf4]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov edx, dword [esp + 0xf8]
push 0
lea ecx, [esp + 0x38]
push 0x56e1f4
push ecx
push edx
mov ebp, eax
call fcn.00409ba0
mov eax, ebp
add esp, 0x10
and eax, 0xffff0000
lea ecx, [esp + 0x14]
cmp eax, 0x10000
mov byte [esp + 0xe4], 0x18
je 0x4b63df
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 2
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe4], 0x25
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0x24
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 0x23
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0x22
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0x21
call fcn.00507d3a
mov byte [esp + 0xe4], 0x20
jmp 0x4b644d
mov ecx, 0x571fb8
mov dword [esp + 0x10], 1
call fcn.00482e80
test eax, eax
je 0x4b6bb8
mov ecx, ebx
call fcn.0040d6e0
test eax, eax
je 0x4b6bb8
mov ebx, dword [esp + 0xf0]
mov ecx, ebx
call fcn.004e0060
cmp eax, 1
jne 0x4b6bbf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x108]
cmp edx, eax
jg 0x4b6843
jl 0x4b682f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x104]
cmp eax, ecx
jae 0x4b6843
mov ecx, dword [esp + 0xfc]
push ecx
mov ecx, ebx
call fcn.004dfce0
cmp eax, 1
je 0x4b6869
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0x18]
cmp eax, edx
jne 0x4b6bbf
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x4b6bbf
mov eax, dword [0x569c90]
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
push 1
push 1
push 0xe232
mov ecx, esi
mov byte [esp + 0xf0], 0x27
call fcn.004d2030
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push 0
push 0
push 0
push 0
push ecx
mov ecx, esi
mov edx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004a5480
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x110], 0x28
call fcn.004a01d0
mov edx, dword [ebx]
mov ecx, ebx
mov byte [esp + 0x10c], 0x27
call dword [edx + 0x68]
mov ebx, eax
and eax, 0xffff0000
cmp eax, 0x10000
je 0x4b69db
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 0x26
call fcn.00507d3a
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 2
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe4], 0x2e
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0x2d
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 0x2c
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0x2b
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0x2a
call fcn.00507d3a
lea ecx, [esp + 0x70]
mov byte [esp + 0xe4], 0x29
call fcn.00404e10
lea ecx, [esp + 0x38]
mov byte [esp + 0xe4], 1
call fcn.00404d90
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0
call fcn.00507d3a
lea ecx, [esp + 0xf8]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00507d3a
mov eax, ebx
jmp 0x4b6491
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.004f27d5
add esp, 8
test eax, eax
jne 0x4b6b72
mov ecx, dword [esp + 0x104]
mov eax, dword [esp + 0x18]
cmp eax, ecx
jne 0x4b6b4c
mov ebx, dword [esp + 0x108]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4b6b4c
push 1
push 1
push 0xe240
mov ecx, esi
call fcn.004d2030
mov edx, dword [esp + 0x118]
lea eax, [edi + 8]
push eax
mov dword [edx], 0xffffffff
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esp + 0x104]
mov dword [esi + 0x254], ebx
mov dword [esi + 0x250], ebp
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
push 0
push ebx
push ebp
mov ecx, esi
call fcn.004a0840
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 0x26
call fcn.00507d3a
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 2
call fcn.00507d3a
lea eax, [esp + 0x98]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe4], 0x34
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0x33
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 0x32
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0x31
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0x30
call fcn.00507d3a
lea ecx, [esp + 0x70]
mov byte [esp + 0xe4], 0x2f
call fcn.00404e10
lea ecx, [esp + 0x38]
mov byte [esp + 0xe4], 1
call fcn.00404d90
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0
call fcn.00507d3a
lea ecx, [esp + 0xf8]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00507d3a
mov eax, 0x10001
jmp 0x4b6491
push 1
push 1
push 0xe241
mov ecx, esi
call fcn.004d2030
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x4b6b96
push 1
push 1
push 0xe242
mov ecx, esi
call fcn.004d2030
mov eax, dword [esp + 0x100]
mov dword [eax], 0
mov dword [eax + 4], 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 0x26
call fcn.00507d3a
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 2
call fcn.00507d3a
mov ebx, dword [esp + 0xf0]
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x394]
test eax, eax
jne 0x4b6bef
mov eax, dword [esi + 0x248]
cmp eax, 0x20003
je 0x4b6bef
cmp eax, 0x10002
mov dword [esp + 0x14], 0
jne 0x4b6bf7
mov dword [esp + 0x14], 1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b6ccd
lea eax, [esp + 0x98]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe4], 0x3a
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0x39
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 0x38
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0x37
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0x36
call fcn.00507d3a
mov byte [esp + 0xe4], 0x35
lea ecx, [esp + 0x70]
call fcn.00404e10
lea ecx, [esp + 0x38]
mov byte [esp + 0xe4], 1
call fcn.00404d90
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0
call fcn.00507d3a
lea ecx, [esp + 0xf8]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00507d3a
mov eax, 0x30004
jmp 0x4b6491
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4b63f5
mov ecx, dword [esp + 0xfc]
push ecx
mov ecx, ebx
call fcn.004dfce0
mov ebp, eax
lea edx, [edi + 8]
neg ebp
sbb ebp, ebp
push edx
neg ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov ebx, dword [esi + 0xb0]
mov ecx, edi
call dword [eax + 0x14]
test ebx, ebx
je 0x4b6d1a
cmp ebx, 1
je 0x4b6d1a
cmp ebx, 2
je 0x4b6d1a
cmp ebx, 8
jne 0x4b6d52
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov ebx, dword [esi + 0x4c]
mov ecx, edi
call dword [edx + 0x14]
test ebx, ebx
je 0x4b6d4b
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov ebx, dword [esi + 0x4c]
mov ecx, edi
call dword [edx + 0x14]
cmp ebx, 1
jne 0x4b6d52
mov eax, 1
jmp 0x4b6d54
xor eax, eax
test ebp, ebp
jne 0x4b6d8f
test eax, eax
je 0x4b6d8f
mov ecx, 0x571fb8
call fcn.00480390
test eax, eax
jne 0x4b6d8f
mov eax, dword [0x5724c4]
test eax, eax
jne 0x4b6d8f
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0xf0]
push eax
call fcn.004dfdc0
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebp
push ecx
push edx
push eax
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x44], esp
push ecx
mov ecx, dword [esp + 0x114]
call fcn.0040d740
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
push eax
sub esp, 0xc
lea edx, [esp + 0x13c]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.00417da0
mov ecx, dword [esp + 0x60]
push esi
call fcn.004c4950
mov ebp, eax
and eax, 0x4000
xor ecx, ecx
cmp eax, 0x4000
mov eax, dword [esp + 0x118]
sete cl
and ebp, 0xffffbfff
mov dword [eax], ecx
mov edx, ebp
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4b6e20
test ecx, ecx
je 0x4b63f5
lea eax, [esp + 0x98]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe4], 0x40
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 0x3f
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 0x3e
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0x3d
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0x3c
call fcn.00507d3a
mov byte [esp + 0xe4], 0x3b
jmp 0x4b644d