Function at 0x10012a34
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 dword [0x10078bb4], 0x122e
cmp eax, 0
sete bl
cmp ecx, 0
sete bh
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10012c5c
jmp 0x10012a96
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [0x10078bb4], ecx
mov dword [0x10078bb8], 0x671
mov dword [ebp - 0x18], eax
jmp 0x10012c5c
mov dword [0x10078bb4], 0xc01
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x10078bb4], 0x1973
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10078bb8], 0x177a
mov ecx, dword [ecx + 0x14]
mov dword [0x10078bb4], 0x1eb7
cmp ecx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], eax
je 0x10012c5c
jmp 0x10012b97
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
add eax, 0x264a
mov edx, ecx
add edx, 1
mov esi, dword [ebp - 0x30]
mov di, word [esi + ecx*2]
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov word [ebp - 0x3e], di
mov word [ebp - 0x40], si
jb 0x10012b38
mov ax, word [ebp - 0x3e]
mov word [ebp - 0x40], ax
mov ax, word [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, dword [ebp - 0x38]
mov byte [ebp - 0x45], bl
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
jne 0x10012aee
jmp 0x10012c2b
mov eax, dword [ebp - 0x38]
mov dword [0x10078bb4], eax
mov dword [0x10078bb8], 0x671
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
jmp 0x10012c5c
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x4d], cl
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
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 - 0x4d]
and bh, bl
test bh, 1
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x4c], esi
jne 0x10012bdc
jmp 0x10012bfd
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff8
mov dword [0x10078bb4], 0xdfa
mov dword [0x10078bb8], 0xa7
mov dword [ebp - 0x18], eax
jmp 0x10012c5c
mov eax, 0xdfa
xor ecx, ecx
mov edx, dword [ebp - 0x5c]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov ebx, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x60], eax
je 0x10012c3e
jmp 0x10012aee
mov al, byte [ebp - 0x45]
test al, 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x60], ecx
jne 0x10012b7a
jmp 0x10012c3e
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x24]
cmp edx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x54], edx
je 0x10012a79
jmp 0x10012bab
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret