Function at 0x1018770c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x101a2114], 0x122e
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x16], dh
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
mov dl, byte [ebp - 0x16]
and cl, dl
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x1018793b
jmp 0x10187789
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x1d], cl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
jmp 0x101877e1
mov al, byte [ebp - 0x29]
test al, 1
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
jne 0x101878f0
jmp 0x1018790a
mov dword [0x101a2114], 0xc01
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x101a2114], 0x1973
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x101a2118], 0x177a
mov ecx, dword [ecx + 0x14]
mov dword [0x101a2114], 0x1eb7
cmp ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x1c], eax
je 0x1018793b
jmp 0x1018775d
mov eax, dword [ebp - 0x28]
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 - 0x1d]
and bh, bl
test bh, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], esi
jne 0x10187812
jmp 0x10187836
mov dword [0x101a2114], 0xdfa
mov dword [0x101a2118], 0xa7
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x1018793b
mov eax, 0xdfa
xor ecx, ecx
mov edx, dword [ebp - 0x40]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov ebx, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x34], eax
je 0x1018790a
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
add ecx, 0x264a
mov edx, eax
add edx, 1
mov esi, dword [ebp - 0x44]
mov di, word [esi + eax*2]
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x5c], edx
mov word [ebp - 0x5e], di
mov word [ebp - 0x60], si
jb 0x101878ae
mov ax, word [ebp - 0x5e]
mov word [ebp - 0x60], ax
mov ax, word [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x58]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x54]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x29], bl
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
jne 0x10187863
jmp 0x10187773
mov eax, dword [ebp - 0x30]
mov dword [0x101a2114], eax
mov dword [0x101a2118], 0x671
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], ecx
jmp 0x1018793b
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x38]
cmp edx, esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x28], edx
jne 0x101877e1
xor eax, eax
mov ecx, dword [ebp - 0x64]
mov dword [0x101a2114], ecx
mov dword [0x101a2118], 0x671
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret