Function at 0x10066540
Capabilities:
Parse pe header

Disassembly:
push 0x16c
mov eax, 0x100f3b9a
call fcn.100cca34
mov edi, ecx
mov dword [ebp - 0x168], edi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x169]
mov esi, dword [ebp + 0xc]
push 0
call fcn.1001190b
add edi, 8
push edi
mov dword [ebp - 0x178], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x164]
push dword [ebp + 0x10]
push esi
call fcn.10062a11
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x164]
test esi, esi
jne 0x100665ad
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x1006701c
mov edi, dword [ebp - 0x168]
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x20]
call dword [eax + 0xc]
test eax, eax
mov eax, dword [edi + 0x20]
push ebx
je 0x100668a8
lea ecx, [edi + 0x20]
call dword [eax + 0x3c]
mov ecx, edi
call fcn.10062eac
test eax, eax
jne 0x100665ea
and dword [ebp - 0x168], eax
mov edi, dword [ebp - 0x168]
jmp 0x1006689b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x38]
test eax, 0x8000
mov ecx, ebx
mov eax, dword [ebx]
je 0x100666c0
call dword [eax + 0x18]
mov di, ax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
cmp ax, di
mov ecx, ebx
mov eax, dword [ebx]
jne 0x100666a2
mov edi, dword [esi]
call dword [eax + 0x10]
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x168]
push eax
call fcn.10062d4c
push eax
mov ecx, esi
call dword [edi + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [esi]
call dword [eax + 0x1c]
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, dword [esi]
xor edi, edi
inc edi
mov ecx, esi
push edi
call dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ebx, dword [ebp - 0x168]
mov ecx, ebx
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x170]
push eax
call fcn.1006783e
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.100644ce
pop ecx
pop ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x164]
test ecx, ecx
je 0x1006700a
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1006700a
call dword [eax + 0x10]
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x168]
push eax
call fcn.10062d4c
xor edi, edi
jmp 0x1006689b
mov edi, dword [esi]
call dword [eax + 0x10]
push eax
mov ecx, esi
call dword [edi + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [esi]
call dword [eax + 0x1c]
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, dword [esi]
xor edi, edi
inc edi
mov ecx, esi
push edi
call dword [eax + 0x10]
mov esi, dword [ebp - 0x168]
add esi, 0x20
push ebx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
test eax, eax
je 0x10066700
push esi
jmp 0x10066678
mov dword [ebp - 0x48], 0x231a
mov eax, dword [ebp - 0x48]
xor eax, 0x5a
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
inc eax
push 0x43
pop ecx
xor eax, ecx
mov word [ebp - 0x42], ax
mov eax, dword [ebp - 0x48]
add eax, 2
push 0x45
pop ebx
xor eax, ebx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x48]
add eax, 3
push 0x20
pop edx
xor eax, edx
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x48]
add eax, 4
xor eax, ecx
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x48]
add eax, 5
xor eax, 0x4f
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x48]
add eax, 6
xor eax, 0x4d
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x48]
add eax, 7
xor eax, 0x50
mov word [ebp - 0x36], ax
mov eax, dword [ebp - 0x48]
add eax, 8
push 0x4c
pop ecx
xor eax, ecx
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x48]
add eax, 9
xor eax, ebx
mov word [ebp - 0x32], ax
mov eax, dword [ebp - 0x48]
add eax, 0xa
xor eax, 0x54
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x48]
add eax, 0xb
xor eax, ebx
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x48]
add eax, 0xc
xor eax, edx
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x48]
add eax, 0xd
xor eax, 0x52
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x48]
add eax, 0xe
xor eax, ebx
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x48]
add eax, 0xf
xor eax, 0x53
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x48]
add eax, 0x10
xor eax, ebx
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x48]
add eax, 0x11
xor eax, 0x4e
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x48]
add eax, 0x12
xor eax, 0x44
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x48]
add eax, 0x13
xor eax, edx
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x48]
add eax, 0x14
xor eax, 0x52
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x48]
add eax, 0x15
xor eax, ebx
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x48]
add eax, 0x16
xor eax, 0x50
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x48]
add eax, 0x17
xor eax, ecx
lea ecx, [ebp - 0x48]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x48]
add eax, 0x18
xor eax, 0x59
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
mov ax, word [ebp - 0x44]
call fcn.10002c3d
push eax
push 0x3002
call fcn.100676c1
mov eax, dword [esi]
pop ecx
pop ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x24]
mov esi, dword [ebp - 0x164]
lea eax, [ebp - 0x168]
or dword [ebp - 0x168], 0xffffffff
mov ecx, esi
push 4
push eax
mov eax, dword [esi]
call dword [eax + 0x1c]
push eax
call fcn.100cfb50
add esp, 0xc
mov byte [ebp - 4], 0
mov ecx, esi
mov eax, dword [esi]
jmp 0x1006669a
lea ebx, [edi + 0x20]
mov ecx, ebx
call dword [eax]
test eax, eax
jne 0x10066a24
mov eax, dword [0x10201ab4]
mov eax, dword [eax + 0x10]
mov edi, dword [eax + 0x48]
mov eax, 0x4809
mov dword [ebp - 0x160], 0x4871
mov word [ebp - 0x15c], ax
lea ecx, [eax + 9]
mov word [ebp - 0x15a], cx
lea esi, [eax + 0x14]
mov word [ebp - 0x158], si
lea edx, [eax + 0xf]
mov word [ebp - 0x156], dx
lea ebx, [eax + 0x15]
mov word [ebp - 0x154], bx
add eax, 0x42
mov word [ebp - 0x152], ax
mov word [ebp - 0x150], ax
lea eax, [ecx + 0x3f]
mov word [ebp - 0x14e], ax
add eax, 0xffffffba
mov word [ebp - 0x14c], ax
lea eax, [esi + 0x34]
mov word [ebp - 0x14a], cx
add ecx, 2
mov word [ebp - 0x148], cx
mov word [ebp - 0x146], ax
add eax, 0xffffffc6
mov word [ebp - 0x144], ax
lea eax, [esi - 0x1a]
mov word [ebp - 0x142], dx
add edx, 0x39
mov word [ebp - 0x140], si
mov word [ebp - 0x13e], si
mov word [ebp - 0x13c], dx
mov word [ebp - 0x13a], cx
mov word [ebp - 0x138], ax
mov word [ebp - 0x136], ax
mov word [ebp - 0x134], bx
mov word [ebp - 0x132], ax
add eax, 0x13
mov word [ebp - 0x130], dx
mov word [ebp - 0x12e], ax
lea eax, [esi + 0x2f]
mov word [ebp - 0x12c], cx
mov word [ebp - 0x12a], dx
mov word [ebp - 0x128], ax
add eax, 8
mov word [ebp - 0x126], dx
mov word [ebp - 0x124], ax
lea eax, [esi + 0x24]
mov word [ebp - 0x122], ax
add eax, 8
mov word [ebp - 0x120], ax
lea eax, [esi - 0x14]
mov word [ebp - 0x11e], ax
xor eax, eax
mov word [ebp - 0x11c], ax
mov ax, word [ebp - 0x15c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x160]
call fcn.1000b72d
push eax
push edi
call dword [esi + 0x18]
add esp, 0xc
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x164]
mov eax, dword [ecx]
jmp 0x10067005
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x10066ada
mov dword [ebp - 0x118], 0xd6a8
mov edx, 0xd6ed
mov eax, 0xd6f2
mov word [ebp - 0x114], ax
add eax, 0xfffffff9
mov word [ebp - 0x112], ax
mov word [ebp - 0x110], dx
lea ecx, [edx - 0x65]
mov word [ebp - 0x10e], cx
lea eax, [edx - 0xc]
mov word [ebp - 0x10c], ax
add eax, 0x1a
mov word [ebp - 0x10a], ax
lea eax, [edx - 6]
mov word [ebp - 0x108], cx
add ecx, 0x72
mov word [ebp - 0x106], dx
mov word [ebp - 0x104], cx
mov word [ebp - 0x102], cx
mov word [ebp - 0x100], ax
xor eax, eax
mov word [ebp - 0xfe], cx
lea ecx, [ebp - 0x118]
mov word [ebp - 0xfc], ax
mov ax, word [ebp - 0x114]
call fcn.100110c7
push eax
push 0x3002
call fcn.100676c1
pop ecx
pop ecx
jmp 0x10066a13
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x10066ffd
mov ecx, edi
call fcn.10062eac
test eax, eax
je 0x10066ffd
push 0x63
pop esi
push 0x4c
pop ecx
push 0x4e
pop edx
mov word [ebp - 0xa8], si
push 0x29
mov word [ebp - 0xa6], cx
pop eax
mov word [ebp - 0xa4], dx
mov word [ebp - 0xa2], ax
push 0x58
pop eax
mov word [ebp - 0xa0], cx
lea ecx, [ebp - 0xa8]
mov word [ebp - 0x9e], ax
push 0x56
pop eax
mov word [ebp - 0x9c], ax
push 0x59
pop eax
mov word [ebp - 0x9a], ax
push 0x55
pop eax
mov word [ebp - 0x98], ax
mov word [ebp - 0x96], dx
push 0x5d
pop eax
mov word [ebp - 0x94], ax
xor eax, eax
mov word [ebp - 0x92], dx
mov word [ebp - 0x90], ax
mov ax, word [ebp - 0xa8]
call fcn.1006779e
push eax
push 0x3002
call fcn.100676c1
push ebx
call fcn.100638e0
add esp, 0xc
test eax, eax
jne 0x10066df7
mov eax, dword [0x10201ab4]
push 0x3a
pop ecx
push 0x20
mov eax, dword [eax + 0x10]
pop edx
mov edi, dword [eax + 0x48]
mov dword [ebp - 0x8c], 0xf557
mov eax, dword [ebp - 0x8c]
xor eax, 0x78
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x8c]
inc eax
xor eax, esi
mov word [ebp - 0x86], ax
mov eax, dword [ebp - 0x8c]
add eax, 2
xor eax, 0x6c
mov word [ebp - 0x84], ax
mov eax, dword [ebp - 0x8c]
add eax, 3
xor eax, 0x69
mov word [ebp - 0x82], ax
mov eax, dword [ebp - 0x8c]
add eax, 4
xor eax, 0x6f
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x8c]
add eax, 5
xor eax, ecx
mov word [ebp - 0x7e], ax
mov eax, dword [ebp - 0x8c]
add eax, 6
xor eax, ecx
mov word [ebp - 0x7c], ax
mov eax, dword [ebp - 0x8c]
add eax, 7
xor eax, edx
mov word [ebp - 0x7a], ax
mov eax, dword [ebp - 0x8c]
add eax, 8
xor eax, 0x7a
mov word [ebp - 0x78], ax
mov eax, dword [ebp - 0x8c]
add eax, 9
xor eax, esi
mov word [ebp - 0x76], ax
mov eax, dword [ebp - 0x8c]
add eax, 0xa
xor eax, 0x65
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x8c]
add eax, 0xb
xor eax, edx
mov word [ebp - 0x72], ax
mov eax, dword [ebp - 0x8c]
add eax, 0xc
xor eax, 0x6c
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x8c]
add eax, 0xd
xor eax, 0x6f
mov word [ebp - 0x6e], ax
mov eax, dword [ebp - 0x8c]
add eax, 0xe
xor eax, 0x61
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x8c]
add eax, 0xf
xor eax, 0x64
mov word [ebp - 0x6a], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x10
xor eax, edx
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x11
xor eax, 0x66
mov word [ebp - 0x66], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x12
xor eax, 0x61
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x13
xor eax, 0x69
mov word [ebp - 0x62], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x14
xor eax, 0x6c
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x15
xor eax, 0x2c
mov word [ebp - 0x5e], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x16
xor eax, edx
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x17
xor eax, 0x47
mov word [ebp - 0x5a], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x18
xor eax, 0x45
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x19
xor eax, 0x3d
mov word [ebp - 0x56], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x1a
xor eax, 0x25
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x1b
xor eax, 0x30
mov word [ebp - 0x52], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x1c
xor eax, 0x38
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x8c]
add eax, 0x1d
xor eax, 0x78
mov word [ebp - 0x4e], ax
xor eax, eax
mov word [ebp - 0x4c], ax
mov ax, word [ebp - 0x88]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x8c]
call fcn.1000b46f
push eax
push edi
call dword [esi + 0x28]
mov eax, dword [0x10201ab4]
add esp, 0xc
xor ebx, ebx
mov eax, dword [eax + 0x10]
push ebx
push ebx
push ebx
mov ecx, dword [eax + 0x38]
add ecx, 4
push 0x16
push 0x15
push 0x3002
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x164]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, ebx
jmp 0x1006700a
mov esi, dword [ebp - 0x164]
mov ecx, esi
push 1
mov eax, dword [esi]
call dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [esi]
call dword [eax + 0x20]
push eax
mov ecx, esi
call dword [edi + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [esi]
call dword [eax + 0x28]
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, dword [0x10201ab4]
push 0x7d
mov edi, dword [eax + 0xa8]
pop eax
push 0x47
mov word [ebp - 0xf8], ax
pop eax
push 0x38
mov word [ebp - 0xf6], ax
pop eax
push 0x44
pop ecx
mov word [ebp - 0xf4], ax
push 0x45
mov word [ebp - 0xf2], cx
mov word [ebp - 0xf0], ax
pop eax
push 0x43
mov word [ebp - 0xee], ax
mov word [ebp - 0xec], cx
pop ecx
push 0x34
pop edx
push 0x2f
mov word [ebp - 0xea], cx
mov word [ebp - 0xe8], dx
pop edx
push 0x48
mov word [ebp - 0xe6], dx
pop edx
push 0x33
mov word [ebp - 0xe4], dx
mov word [ebp - 0xe2], ax
pop eax
push 0x3b
pop esi
mov word [ebp - 0xe0], ax
push 0x2f
pop eax
push 0x36
pop edx
mov word [ebp - 0xde], si
mov word [ebp - 0xdc], ax
push 0x39
pop eax
mov word [ebp - 0xda], dx
mov word [ebp - 0xd8], ax
push 0x68
pop eax
mov word [ebp - 0xd6], ax
mov word [ebp - 0xd4], dx
push 0x2f
pop edx
push 0x46
pop eax
mov word [ebp - 0xd2], dx
mov word [ebp - 0xd0], si
push 0x33
mov word [ebp - 0xce], ax
pop esi
mov word [ebp - 0xcc], si
mov word [ebp - 0xca], ax
mov word [ebp - 0xc8], dx
mov word [ebp - 0xc6], cx
mov word [ebp - 0xc4], cx
push 0x3a
pop ecx
mov word [ebp - 0xc2], cx
push 0x37
pop eax
mov word [ebp - 0xc0], ax
mov word [ebp - 0xbe], cx
mov word [ebp - 0xbc], cx
mov word [ebp - 0xba], si
push 0x39
pop edx
mov word [ebp - 0xb8], dx
mov word [ebp - 0xb6], ax
push 0x38
mov word [ebp - 0xb4], dx
mov word [ebp - 0xb2], cx
lea ecx, [ebp - 0xf8]
pop eax
mov word [ebp - 0xb0], ax
push 0x7f
pop eax
mov word [ebp - 0xae], ax
xor eax, eax
mov word [ebp - 0xac], ax
mov ax, word [ebp - 0xf8]
mov esi, dword [edi]
push 3
call fcn.10039b93
push eax
push edi
call dword [esi + 0x70]
cmp eax, 3
jne 0x10066fd0
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.100644ce
pop ecx
pop ecx
mov esi, dword [ebp - 0x164]
mov byte [ebp - 4], 0
test esi, esi
je 0x10066fcb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor edi, edi
inc edi
jmp 0x1006700a
cmp eax, 2
jne 0x10066fb6
mov esi, dword [ebp - 0x164]
lea eax, [ebp - 0x174]
and dword [ebp - 0x174], 0
mov ecx, esi
push 4
push eax
mov eax, dword [esi]
call dword [eax + 0x1c]
push eax
call fcn.100cfb50
add esp, 0xc
jmp 0x10066fbc
mov byte [ebp - 4], 0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
xor edi, edi
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x178]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.100cc9de
ret 0xc