Function at 0x104f6570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
cmp eax, 0
sete bl
mov esi, dword [0x1050d9c8]
cmp ecx, 0
sete bh
mov edi, esi
add edi, 0xfffff518
mov dword [0x1050d9c8], edi
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edx
jne 0x104f680b
jmp 0x104f670a
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [0x1050d9c4], eax
mov dword [0x1050d9c8], 0x13cf
add ecx, 0xfffffff8
mov dword [ebp - 0x1c], ecx
jmp 0x104f680b
mov eax, 0xc5a
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], eax
jne 0x104f67a9
mov eax, dword [ebp - 0x30]
mov ecx, 0x346
mov edx, dword [ebp - 0x34]
mov esi, dword [edx]
mov edi, dword [ebp - 0x38]
cmp esi, edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x104f67f4
jmp 0x104f6766
mov eax, 0x10a8
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x48]
mov byte [ebp - 0x49], dl
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
jmp 0x104f6766
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x54], eax
mov eax, 0x10d1
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
mov esi, eax
mov bl, byte [ebp - 0x55]
mov byte [ebp - 0x56], bl
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], eax
jae 0x104f67bb
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x6c], ecx
mov word [ebp - 0x6e], si
mov word [ebp - 0x70], bx
jb 0x104f66bc
mov ax, word [ebp - 0x6e]
mov word [ebp - 0x70], ax
mov ax, word [ebp - 0x70]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
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 al, bl
mov esi, dword [ebp - 0x6c]
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x56], al
mov dword [ebp - 0x64], esi
jne 0x104f67bb
jmp 0x104f6653
xor eax, eax
mov dword [0x1050d9c4], 0x1003
mov dword [ebp - 0x1c], eax
jmp 0x104f680b
mov eax, dword [ebp - 0x18]
add eax, 0xffffddea
mov dword [0x1050d9c4], eax
mov ecx, dword fs:[0x18]
mov dword [0x1050d9c8], 0x2666
mov dword [0x1050d9c4], 0x16d2
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov dword [0x1050d9c8], 0x1728
mov eax, dword [eax + 0x14]
mov dword [0x1050d9c4], 0x1629
cmp eax, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], eax
je 0x104f66f6
jmp 0x104f6631
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x49]
and bh, bl
test bh, 1
mov ebx, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x20], ecx
jne 0x104f65c5
jmp 0x104f65e8
mov eax, 0xc5a
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
jmp 0x104f6682
mov eax, dword [ebp - 0x64]
mov cl, byte [ebp - 0x56]
test cl, 1
mov edx, eax
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], esi
jne 0x104f67d9
jmp 0x104f660b
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
mov dword [0x1050d9c4], 0xfffffac4
mov dword [0x1050d9c8], ecx
mov dword [ebp - 0x1c], eax
jmp 0x104f680b
mov eax, dword [ebp - 0x44]
mov dword [0x1050d9c4], 0x8c7
mov dword [0x1050d9c8], eax
jmp 0x104f66f6
mov eax, dword [ebp - 0x1c]
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret