Function at 0x10179d94
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov dword [0x10182d14], 0x23d6
mov esi, dword [0x10182d18]
mov edi, esi
add edi, 0xfffffb21
mov dword [0x10182d18], edi
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edx
jne 0x1017a00d
jmp 0x10179e12
mov eax, dword [ebp - 0x20]
mov dword [0x10182d14], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xffffec0d
mov dword [0x10182d18], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
jmp 0x1017a00d
mov eax, dword [ebp - 0x18]
add eax, 0xfffff9c6
mov dword [0x10182d14], 0x170c
mov dword [0x10182d18], eax
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x10182d14], 0xcf7
mov ecx, dword [ecx + 0x30]
mov dword [0x10182d18], 0x4c0
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x10182d14], 0xcc9
cmp ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], eax
je 0x1017a00d
mov eax, 0x4c0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x35], dl
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
mov edx, ecx
add edx, 0x24
mov esi, eax
add esi, 0x63f
mov edi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
cmp ebx, eax
sete al
mov ah, byte [ebp - 0x35]
and ah, al
test ah, 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], edi
jne 0x10179f03
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ebx
je 0x10179fdf
jmp 0x10179f1c
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff8
mov ecx, dword [ebp - 0x4c]
mov dword [0x10182d14], ecx
mov dword [ebp - 0x1c], eax
jmp 0x1017a00d
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x54]
mov edx, 0x3a0
mov esi, ecx
add esi, 0xffffdb51
mov edi, dword [ebp - 0x50]
mov bx, word [edi + eax*2]
mov di, bx
add di, 0xffbf
mov dword [ebp - 0x68], esi
mov si, bx
add si, 0x20
cmp di, 0x1a
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x70], edx
mov word [ebp - 0x72], bx
mov word [ebp - 0x74], si
jb 0x10179f69
mov ax, word [ebp - 0x72]
mov word [ebp - 0x74], ax
mov ax, word [ebp - 0x74]
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 - 0x75], bl
mov dword [ebp - 0x7c], esi
jne 0x10179fbc
mov eax, dword [ebp - 0x24]
add eax, 0xffffd3c4
mov ecx, dword [ebp - 0x6c]
add ecx, 1
mov edx, dword [ebp - 0x5c]
cmp ecx, edx
mov esi, eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x7c], eax
jb 0x10179f1c
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x68]
mov dword [0x10182d18], ecx
mov dl, byte [ebp - 0x75]
test dl, 1
mov esi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x58], esi
jne 0x10179df0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x44]
mov esi, dword [edx]
mov edi, dword [ebp - 0x30]
cmp esi, edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], ecx
jne 0x10179e8f
mov eax, dword [ebp - 0x80]
mov dword [0x10182d14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1017a00d
mov eax, dword [ebp - 0x1c]
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret