Function at 0x1016e326
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x101b30b0]
add edx, 0xfffff404
mov dword [0x101b30ac], edx
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], bl
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x1016e570
jmp 0x1016e40a
mov eax, dword [ebp - 0x20]
mov ecx, 0x1cc4
mov edx, dword [ebp - 0x24]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x2e], si
mov word [ebp - 0x30], bx
jb 0x1016e3b8
mov ax, word [ebp - 0x2e]
mov word [ebp - 0x30], ax
mov ax, word [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 0x31], bl
mov dword [ebp - 0x38], esi
jne 0x1016e3e9
jmp 0x1016e500
mov eax, dword [ebp - 0x38]
mov ecx, 0x1f0d
mov dword [0x101b30b0], eax
mov dl, byte [ebp - 0x31]
test dl, 1
mov dword [ebp - 0x3c], ecx
jne 0x1016e524
jmp 0x1016e536
mov dword [0x101b30b0], 0x1c78
mov dword [0x101b30ac], 0x7e4
mov ecx, dword fs:[0x18]
mov dword [0x101b30ac], 0x2201
mov dword [0x101b30b0], 0x2254
mov eax, dword [ecx + 0x30]
mov dword [0x101b30ac], 0xfffff9d6
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x101b30b0], 0xe68
cmp eax, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1016e561
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x45], cl
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
jmp 0x1016e482
mov eax, dword [ebp - 0x4c]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x45]
and bh, bl
test bh, 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x58], esi
jne 0x1016e4b3
jmp 0x1016e4cd
mov dword [0x101b30ac], 0x1514
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x1016e570
mov eax, 0x18d7
xor ecx, ecx
mov edx, dword [ebp - 0x54]
mov si, word [edx]
mov dword [0x101b30b0], 0x10be
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], eax
je 0x1016e536
jmp 0x1016e37c
mov eax, 0x1d54
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov edx, dword [ebp - 0x5c]
cmp ecx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], eax
jb 0x1016e37c
jmp 0x1016e3e9
mov dword [0x101b30ac], 0x19d9
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
jmp 0x1016e570
mov eax, dword [ebp - 0x3c]
mov dword [0x101b30b0], 0x1a05
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x40]
cmp edx, esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x4c], edx
jne 0x1016e482
mov eax, dword [ebp - 0x60]
mov dword [0x101b30ac], eax
xor eax, eax
mov dword [0x101b30b0], 0x2016
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret