Function at 0x10179d82
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
cmp eax, 0
sete bl
mov dword [0x10182e94], 0x23d6
cmp ecx, 0
sete bh
mov esi, dword [0x10182e98]
mov edi, esi
add edi, 0xfffffb21
mov dword [0x10182e98], edi
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edx
jne 0x1017a017
jmp 0x10179e36
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
je 0x10179fe3
jmp 0x10179f10
mov eax, dword [ebp - 0x40]
add eax, 0xffffec0d
mov ecx, dword [ebp - 0x44]
mov dword [0x10182e94], ecx
mov dword [0x10182e98], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x1017a017
mov eax, dword [ebp - 0x18]
add eax, 0xfffff9c6
mov dword [0x10182e94], 0x170c
mov dword [0x10182e98], eax
mov ecx, dword fs:[0x18]
mov dword [0x10182e94], 0xcf7
mov eax, dword [ecx + 0x30]
mov dword [0x10182e98], 0x4c0
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp - 0x4c], eax
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
mov dword [0x10182e94], 0xcc9
cmp edx, ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x1c], eax
je 0x1017a017
mov eax, 0x4c0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x55], dl
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
mov edx, eax
add edx, 0x63f
mov esi, ecx
add esi, 0x24
mov edi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
cmp ebx, eax
sete al
mov ah, byte [ebp - 0x55]
and ah, al
test ah, 1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x64], edi
jne 0x10179ef7
jmp 0x10179dde
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff8
mov ecx, dword [ebp - 0x24]
mov dword [0x10182e94], ecx
mov dword [ebp - 0x1c], eax
jmp 0x1017a017
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x3a0
mov esi, dword [ebp - 0x64]
mov di, word [esi + eax*2]
mov ebx, ecx
add ebx, 0xffffdb51
mov si, di
add si, 0xffbf
mov word [ebp - 0x66], si
mov si, di
add si, 0x20
mov word [ebp - 0x68], si
mov si, word [ebp - 0x66]
cmp si, 0x1a
mov si, word [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x70], edx
mov word [ebp - 0x72], si
mov word [ebp - 0x74], di
mov dword [ebp - 0x78], ebx
jb 0x10179f6d
mov ax, word [ebp - 0x74]
mov word [ebp - 0x72], ax
mov ax, word [ebp - 0x72]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x6c]
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 - 0x70]
mov byte [ebp - 0x79], bl
mov dword [ebp - 0x80], esi
jne 0x10179fc0
mov eax, dword [ebp - 0x40]
add eax, 0xffffd3c4
mov ecx, dword [ebp - 0x6c]
add ecx, 1
mov edx, dword [ebp - 0x34]
cmp ecx, edx
mov esi, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x80], eax
jb 0x10179f10
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
mov dword [0x10182e98], ecx
mov dl, byte [ebp - 0x79]
test dl, 1
mov esi, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], esi
jne 0x10179e15
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
mov esi, dword [edx]
mov edi, dword [ebp - 0x4c]
cmp esi, edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x5c], eax
jne 0x10179eb2
mov eax, dword [ebp - 0x84]
mov dword [0x10182e94], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1017a017
mov eax, dword [ebp - 0x1c]
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret