Function at 0x768d88
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x768d91
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.00405600
mov eax, dword [ebp - 0xc]
call fcn.00405600
mov eax, dword [ebp + 0x14]
call fcn.00405600
xor eax, eax
push ebp
push 0x7695d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x7687f8]
call fcn.0076c558
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 4
mov edx, dword [ebp - 8]
call fcn.00405194
mov eax, dword [ebp - 0x10]
add eax, 0xc
mov edx, dword [ebp - 0xc]
call fcn.00405194
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov edx, dword [ebp - 8]
call fcn.00405194
mov eax, dword [ebp - 0x10]
add eax, 8
mov edx, dword [ebp + 0x14]
call fcn.00405194
cmp dword [ebp - 0xc], 0
setne al
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x14], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x20], edx
mov al, byte [ebx]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x55], al
mov al, byte [ebx + 2]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x56], al
mov al, byte [ebx + 3]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x57], al
mov al, byte [ebx + 4]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x58], al
mov al, byte [ebx + 6]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x5a], al
mov al, byte [ebx + 5]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x59], al
mov al, byte [ebx + 1]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x30], al
mov al, byte [ebx + 7]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x31], al
mov al, byte [ebx + 8]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x5b], al
mov al, byte [ebx + 9]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x5c], al
mov al, byte [ebx + 0x18]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x5d], al
mov al, byte [ebx + 0x19]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x5e], al
mov al, byte [ebx + 0x1a]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x5f], al
mov al, byte [ebx + 0x1b]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x60], al
mov al, byte [ebx + 0x1c]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x61], al
mov al, byte [ebx + 0x1d]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x62], al
mov al, byte [ebx + 0x1e]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x63], al
mov al, byte [ebx + 0x1f]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x64], al
mov al, byte [ebx + 0x20]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x65], al
mov al, byte [ebx + 0x16]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x7c], al
mov al, byte [ebx + 0x17]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x7d], al
mov al, byte [ebx + 0x10]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x81], al
mov al, byte [ebx + 0x11]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x7e], al
mov al, byte [ebx + 0x12]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x82], al
mov al, byte [ebx + 0x13]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x83], al
mov al, byte [ebx + 0x14]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x7f], al
mov al, byte [ebx + 0x15]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x80], al
mov al, byte [ebx + 0xa]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x84], al
mov al, byte [ebx + 0xb]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x85], al
mov al, byte [ebx + 0xc]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x86], al
mov al, byte [ebx + 0xd]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x87], al
mov al, byte [ebx + 0xe]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x88], al
mov al, byte [ebx + 0xf]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x89], al
mov eax, dword [ebx + 0x34]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x8c], eax
mov eax, dword [ebx + 0x3c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x94], eax
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x90], eax
mov eax, dword [ebx + 0x44]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x98], eax
mov eax, dword [ebx + 0x3c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x94], eax
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x9c], eax
mov eax, dword [ebx + 0x48]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xa0], eax
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xa4], eax
mov eax, dword [ebx + 0x50]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xa8], eax
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xac], eax
mov eax, dword [ebx + 0x58]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xb0], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xbc], eax
mov eax, dword [ebx + 0x68]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc0], eax
mov eax, dword [ebx + 0x74]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc4], eax
mov eax, dword [ebx + 0x70]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc8], eax
mov eax, dword [ebp - 0x10]
add eax, 0xcc
mov edx, dword [ebx + 0x30]
call fcn.00405194
mov eax, dword [ebx + 0x38]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xd0], eax
mov al, byte [ebx + 0x92]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x34], al
mov al, byte [ebx + 0x93]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x35], al
mov al, byte [ebx + 0x94]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x36], al
mov al, byte [ebx + 0x95]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xed], al
mov eax, dword [ebp - 0x10]
add eax, 0x68
mov edx, dword [ebx + 0x78]
call fcn.00405194
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [eax + 0x6c], edx
mov eax, dword [ebx + 0x28]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x70], eax
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x74], eax
mov al, byte [ebx + 0x81]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xdd], al
mov al, byte [ebx + 0x82]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xde], al
mov al, byte [ebx + 0x88]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xe4], al
cmp byte [ebx + 0x90], 0
jne 0x7690e3
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x59], 0
jne 0x7690e3
xor eax, eax
jmp 0x7690e5
mov al, 1
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xec], al
mov al, byte [ebx + 0x91]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xee], al
mov eax, dword [ebx + 0x98]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xf0], eax
mov al, byte [ebx + 0x9c]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xf4], al
mov eax, dword [ebx + 0xa0]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xf8], eax
mov eax, dword [ebx + 0xa4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xfc], eax
mov al, byte [ebx + 0xa8]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x100], al
mov al, byte [ebx + 0xa9]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x101], al
mov al, byte [ebx + 0xaa]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x103], al
mov eax, dword [ebp - 0x10]
add eax, 0x104
mov edx, dword [ebx + 0xac]
call fcn.00405194
mov al, byte [ebx + 0xb0]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x102], al
mov al, byte [ebx + 0xb8]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xdc], al
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xde], 0
je 0x769254
cmp dword [ebx + 0x84], 0
je 0x769254
mov dl, 1
mov eax, dword [0x41ed6c]
call fcn.004041c0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x84]
call fcn.0040b510
mov eax, dword [ebp - 0x28]
call fcn.00405610
mov ecx, eax
mov edx, 0x7695ec
mov eax, 0x76960c
call fcn.00420e90
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x76924c
inc esi
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
call fcn.0040b510
mov eax, dword [0x83a314]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.006b31c0
mov edi, eax
test edi, edi
jl 0x769246
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
mov ecx, edi
mov edx, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0x3c]
inc dword [ebp - 0x14]
dec esi
jne 0x769205
mov eax, dword [ebp - 0x20]
call fcn.004041f0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xe4], 0
je 0x76931f
cmp dword [ebx + 0x8c], 0
je 0x76931f
mov dl, 1
mov eax, dword [0x41ed6c]
call fcn.004041c0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 0x8c]
call fcn.0040b510
mov eax, dword [ebp - 0x30]
call fcn.00405610
mov ecx, eax
mov edx, 0x7695ec
mov eax, 0x76960c
call fcn.00420e90
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x769317
inc esi
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x18]
call fcn.0040b510
cmp dword [ebp - 0x18], 0
je 0x769311
mov eax, dword [0x83a314]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.006b1c4c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x769311
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 1]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe8]
mov edx, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0x3c]
inc dword [ebp - 0x14]
dec esi
jne 0x7692c2
mov eax, dword [ebp - 0x20]
call fcn.004041f0
mov eax, dword [0x83a4b8]
cmp byte [eax + 0x8d95], 0
je 0x7693dc
mov eax, dword [ebp - 0x10]
add eax, 0x11c
mov edx, dword [ebx + 0xb4]
call fcn.00405194
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + reloc.kernel32.dll_DeleteCriticalSection]
mov edx, dword [0x83a4b8]
mov edx, dword [edx + 0xd4]
lea eax, [ebp - 0x1c]
call fcn.0040545c
mov eax, dword [ebp - 0x1c]
call fcn.0040be8c
test al, al
je 0x7693dc
mov dl, 1
mov eax, dword [0x41ed6c]
call fcn.004041c0
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x7693d4
inc esi
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.0040b510
cmp dword [ebp - 0x18], 0
je 0x7693ce
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + reloc.kernel32.dll_DeleteCriticalSection]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x14]
dec esi
jne 0x76939e
mov eax, dword [ebp - 0x20]
call fcn.004041f0
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0040b2c8
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x839804]
mov eax, dword [eax]
call fcn.0049d2b4
test al, al
je 0x769422
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0040b2c8
mov edx, dword [ebp - 0x40]
mov eax, dword [0x839804]
mov eax, dword [eax]
call fcn.0049d238
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], eax
jmp 0x76946f
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x76946f
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.0040b2c8
mov edx, dword [ebp - 0x44]
mov eax, dword [0x839804]
mov eax, dword [eax]
call fcn.0049d2b4
test al, al
je 0x76946f
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.0040b2c8
mov edx, dword [ebp - 0x48]
mov eax, dword [0x839804]
mov eax, dword [eax]
call fcn.0049d238
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], eax
cmp dword [ebp - 0xc], 0
je 0x769497
mov eax, dword [0x83a4b8]
push dword [eax + 0xd8]
push dword [ebp - 0xc]
push 0x769634
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004054d0
jmp 0x7694b7
mov eax, dword [0x83a4b8]
push dword [eax + 0xd8]
push dword [ebp - 8]
push 0x769634
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004054d0
xor eax, eax
push ebp
push 0x769562
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0076ca34
test al, al
je 0x769523
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042111c
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0040b2c8
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.0049d2b4
test al, al
jne 0x769558
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0040b2c8
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp - 0x10]
call fcn.0049d548
jmp 0x769558
push 0x769644
push dword [ebp - 0x1c]
push 0x769658
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.004054d0
mov eax, dword [ebp - 0x54]
mov cl, 1
xor edx, edx
call fcn.0077bfe4
mov eax, dword [ebp - 0x10]
call fcn.004041f0
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x76959c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7695e0
lea eax, [ebp - 0x58]
mov edx, 0xd
call fcn.00405164
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405164
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405164
lea eax, [ebp + 0x14]
call fcn.00405140
ret