Function at 0x10138eda
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x102a9498]
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
mov edi, esi
add edi, 0xfffff82b
mov dword [0x102a9494], edi
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 0x10139150
jmp 0x10138fec
mov dword [0x102a9494], 0x1726
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x10139150
mov eax, dword [ebp - 0x20]
mov dword [0x102a9494], eax
mov dword [0x102a9498], 0x14b5
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff8
mov dword [ebp - 0x1c], ecx
jmp 0x10139150
mov eax, dword [ebp - 0x28]
mov cl, byte [ebp - 0x29]
test cl, 1
mov edx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
jne 0x10138fa6
jmp 0x10139118
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [0x102a9498]
add edx, 0xffffdfbd
mov esi, dword [ebp - 0x38]
mov byte [ebp - 0x39], cl
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edx
jmp 0x1013904c
mov eax, dword [ebp - 0x30]
add eax, 0x2078
mov dword [0x102a9498], 0x14b5
mov dword [0x102a9494], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x10139150
mov eax, 0x1079
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov edx, dword [ebp - 0x50]
cmp ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x54], ecx
jb 0x101390a7
jmp 0x10138f66
mov eax, dword [ebp - 0x18]
add eax, 0xffffff19
mov dword [0x102a9498], eax
mov dword [0x102a9494], 0x1807
mov ecx, dword fs:[0x18]
mov dword [0x102a9494], 0x17d3
mov dword [0x102a9498], 0xca9
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x102a9494], 0x1e4e
cmp eax, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x38], eax
je 0x10138f2f
jmp 0x10138f7e
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, ecx
add edx, 0x24
mov esi, dword [ecx + 0x28]
mov edi, dword [ecx + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x39]
and bh, bl
test bh, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x48], edi
jne 0x10138f43
xor eax, eax
mov ecx, dword [ebp - 0x5c]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x34], edi
je 0x10139118
mov eax, dword [ebp - 0x54]
mov ecx, 0x5fe
mov edx, dword [ebp - 0x60]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x66], si
mov word [ebp - 0x68], bx
jb 0x101390e3
mov ax, word [ebp - 0x66]
mov word [ebp - 0x68], ax
mov ax, word [ebp - 0x68]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4c]
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 - 0x64]
mov byte [ebp - 0x29], bl
mov dword [ebp - 0x28], esi
jne 0x10138f66
jmp 0x10138fc8
mov eax, dword [ebp - 0x34]
mov ecx, 0xfffff472
mov edx, dword [ebp - 0x24]
mov esi, dword [edx]
mov edi, dword [ebp - 0x58]
cmp esi, edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ecx
jne 0x1013904c
mov eax, dword [ebp - 0x6c]
mov dword [0x102a9494], eax
mov dword [0x102a9498], 0x14b5
jmp 0x10138f2f
mov eax, dword [ebp - 0x1c]
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret