Function at 0x1013f41a
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, 0xffffffff
mov esi, dword [0x1022dbf0]
cmp eax, 0
sete bl
cmp ecx, 0
sete bh
add esi, 0xfffff404
mov dword [0x1022dbec], esi
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x1013f478
jmp 0x1013f4a4
mov dword [0x1022dbec], 0x1514
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, 0x1f0d
mov dword [0x1022dbf0], eax
mov dl, byte [ebp - 0x21]
test dl, 1
mov dword [ebp - 0x28], ecx
jne 0x1013f617
jmp 0x1013f62c
mov dword [0x1022dbf0], 0x1c78
mov dword [0x1022dbec], 0x7e4
mov ecx, dword fs:[0x18]
mov dword [0x1022dbec], 0x2201
mov dword [0x1022dbf0], 0x2254
mov eax, dword [ecx + 0x30]
mov dword [0x1022dbec], 0xfffff9d6
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x1022dbf0], 0xe68
cmp eax, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
je 0x1013f659
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x30]
mov byte [ebp - 0x31], cl
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
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 - 0x31]
and bh, bl
test bh, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], esi
jne 0x1013f463
mov eax, dword [ebp - 0x3c]
mov cx, word [eax]
mov word [ebp - 0x46], cx
mov eax, 0x18d7
xor ecx, ecx
mov dx, word [ebp - 0x46]
shr dx, 1
mov dword [0x1022dbf0], 0x10be
movzx esi, dx
cmp dx, 0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x28], eax
je 0x1013f62c
mov eax, dword [ebp - 0x4c]
mov ecx, 0x1cc4
mov edx, dword [ebp - 0x40]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x5a], si
mov word [ebp - 0x5c], bx
jb 0x1013f5c3
mov ax, word [ebp - 0x5a]
mov word [ebp - 0x5c], ax
mov ax, word [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x54]
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 - 0x58]
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x20], esi
jne 0x1013f483
mov eax, 0x1d54
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov edx, dword [ebp - 0x50]
cmp ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x4c], ecx
jb 0x1013f587
jmp 0x1013f483
mov dword [0x1022dbec], 0x19d9
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
jmp 0x1013f478
mov eax, dword [ebp - 0x28]
mov dword [0x1022dbf0], 0x1a05
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x38], edx
jne 0x1013f51a
mov eax, dword [ebp - 0x60]
mov dword [0x1022dbec], eax
jmp 0x1013f659
xor eax, eax
mov dword [0x1022dbf0], 0x2016
mov dword [ebp - 0x18], eax
jmp 0x1013f478