Function at 0x102046ea
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 edx, 0xffffffff
mov esi, dword [0x10222da0]
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
add esi, 0x975
mov dword [0x10222d9c], esi
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x1020492a
jmp 0x1020476c
mov eax, dword [ebp - 0x1c]
add eax, 1
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
setb dl
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], dl
mov eax, 0x1367
mov cl, byte [ebp - 0x25]
test cl, 1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
jne 0x1020485b
jmp 0x102048c8
mov dword [0x10222d9c], 0xab3
mov dword [0x10222da0], 0x104a
mov ecx, dword fs:[0x18]
mov dword [0x10222d9c], 0x1cc0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp - 0x34], eax
mov dword [0x10222d9c], 0xffffffd2
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x38], ecx
je 0x1020491b
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [0x10222da0]
add edx, 0xa85
mov esi, dword [ebp - 0x38]
mov byte [ebp - 0x39], cl
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [0x10222da0], ecx
mov dx, word [eax + 0x24]
mov ecx, dword [eax + 0x28]
mov dword [0x10222d9c], 0x128b
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x39]
and bh, bl
test bh, 1
mov dword [ebp - 0x48], eax
mov word [ebp - 0x4a], dx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], esi
jne 0x1020481d
jmp 0x10204833
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
jmp 0x1020492a
xor eax, eax
mov dword [0x10222d9c], 0x4e4
mov cx, word [ebp - 0x4a]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], eax
je 0x102048f6
mov eax, dword [ebp - 0x2c]
mov ecx, 0xb88
mov edx, dword [ebp - 0x50]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x5c], ecx
mov word [ebp - 0x5e], si
mov word [ebp - 0x60], bx
jb 0x10204897
mov ax, word [ebp - 0x5e]
mov word [ebp - 0x60], ax
mov ax, word [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
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 - 0x5c]
mov byte [ebp - 0x61], bl
mov dword [ebp - 0x30], esi
jne 0x102048c8
jmp 0x10204737
mov eax, dword [ebp - 0x30]
mov dword [0x10222d9c], eax
mov dword [0x10222da0], 0x1a43
mov cl, byte [ebp - 0x61]
test cl, 1
jne 0x102048e4
jmp 0x102048f6
mov dword [0x10222d9c], 0xffffff5b
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
jmp 0x1020492a
mov eax, 0x270e
mov dword [0x10222da0], 0x1c89
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x34]
cmp edx, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], edx
jne 0x102047dc
xor eax, eax
mov dword [0x10222d9c], 0x2307
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret