Function at 0x496828
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x496830
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x496c40
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
call fcn.004965bc
test al, al
je 0x496ba0
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040eccc
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00462b70
lea eax, [ebp - 0x3c]
call fcn.0045dcfc
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0040eccc
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00462b48
lea eax, [ebp - 0x44]
call fcn.0045e960
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0040eccc
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00462b5c
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
call fcn.0040ec8c
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x14]
mov ecx, 0x496c5c
call fcn.00404e44
mov eax, dword [ebp - 0x14]
call fcn.0040a114
test al, al
jne 0x496914
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
call fcn.0040ec8c
push dword [ebp - 0x4c]
push 0x496c7c
push 0x496c5c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404eb8
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.0049394c
test al, al
je 0x496ba0
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
test eax, eax
jl 0x496ba0
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0
mov dl, 1
mov eax, dword [0x492b40]
call fcn.00403d64
mov dword [ebp - 0xc], eax
mov eax, 0xff
call fcn.00492018
mov dword [ebp - 0x28], eax
mov edx, 0xff
mov eax, dword [ebp - 0x28]
call fcn.00407fc0
mov eax, 0x258
call fcn.00492018
mov dword [ebp - 0x2c], eax
mov edx, 0x258
mov eax, dword [ebp - 0x2c]
call fcn.00407fc0
mov eax, 0x400
call fcn.00492018
mov dword [ebp - 0x24], eax
mov edx, 0x400
mov eax, dword [ebp - 0x24]
call fcn.00407fc0
xor eax, eax
push ebp
push 0x496b8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.004957d8
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0xc]
call fcn.00494014
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
call fcn.00404dc0
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
call fcn.0040ec8c
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x18]
pop edx
call fcn.0045dde4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x68]
call fcn.004054c8
push eax
call fcn.00491b58
lea ecx, [ebp - 0x28]
pop edx
call fcn.00491fb0
test eax, eax
jne 0x496aaa
mov eax, dword [ebp - 0x18]
call fcn.0040a114
test al, al
je 0x496aaa
call fcn.0049676c
test al, al
jne 0x496aaa
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
call fcn.00404dc0
mov eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x28]
call fcn.00404d60
mov eax, dword [ebp - 0x74]
pop edx
call fcn.00493bc8
test al, al
je 0x496b5f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004636d4
mov eax, dword [ebp - 4]
call fcn.00497a18
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x496ad0
call fcn.004045e0
jmp 0x496ba0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00462b84
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x496afa
push 0xffffffffffffffff
call fcn.00461fb8
lea ecx, [ebp - 0x74]
mov edx, 0x496c94
call fcn.00462308
jmp 0x496b5f
call fcn.00491b78
lea eax, [ebp - 0x7c]
call fcn.0045e960
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
call fcn.0040544c
mov eax, dword [ebp - 0x78]
call fcn.004054c8
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x80]
call fcn.004054c8
push eax
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x84]
call fcn.004054c8
push eax
call fcn.00491b58
pop edx
pop ecx
call fcn.00491f88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496b94
mov eax, dword [ebp - 0xc]
call fcn.00403d94
mov eax, dword [ebp - 0x28]
call fcn.00492090
mov eax, dword [ebp - 0x2c]
call fcn.00492090
mov eax, dword [ebp - 0x24]
call fcn.00492090
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496c4a
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.0040529c
lea eax, [ebp - 0x7c]
call fcn.00404b28
lea eax, [ebp - 0x78]
call fcn.00405284
lea eax, [ebp - 0x74]
call fcn.00404b28
lea eax, [ebp - 0x70]
call fcn.00405284
lea eax, [ebp - 0x6c]
call fcn.00404b28
lea eax, [ebp - 0x68]
call fcn.00405284
lea eax, [ebp - 0x64]
call fcn.00404b28
lea eax, [ebp - 0x60]
call fcn.00405284
lea eax, [ebp - 0x5c]
call fcn.00404b28
lea eax, [ebp - 0x58]
call fcn.00406a30
lea eax, [ebp - 0x54]
call fcn.00406a30
lea eax, [ebp - 0x50]
call fcn.00406a30
lea eax, [ebp - 0x4c]
mov edx, 7
call fcn.00404b4c
lea eax, [ebp - 0x1c]
call fcn.00406a30
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b4c
ret