Function at 0x10240d94
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
cmp ecx, 0
sete bl
mov esi, dword [0x10268b3c]
cmp eax, 0
sete bh
add esi, 0xfffff404
mov dword [0x10268b38], esi
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10240fd7
jmp 0x10240e05
mov eax, 0x1d54
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov edx, dword [ebp - 0x20]
cmp ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jb 0x10240f05
jmp 0x10240f72
mov dword [0x10268b3c], 0x1c78
mov dword [0x10268b38], 0x7e4
mov ecx, dword fs:[0x18]
mov dword [0x10268b38], 0x2201
mov dword [0x10268b3c], 0x2254
mov eax, dword [ecx + 0x30]
mov dword [0x10268b38], 0xfffff9d6
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x10268b3c], 0xe68
cmp eax, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
je 0x10240fc6
jmp 0x10240e90
mov dword [0x10268b38], 0x1514
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x10240fd7
mov eax, dword [ebp - 0x38]
mov dword [0x10268b38], eax
jmp 0x10240fc6
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x30]
mov byte [ebp - 0x39], cl
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
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 - 0x39]
and bh, bl
test bh, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], esi
jne 0x10240e69
mov eax, 0x18d7
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov si, word [edx]
mov dword [0x10268b3c], 0x10be
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x50], eax
je 0x10240f9e
mov eax, dword [ebp - 0x24]
mov ecx, 0x1cc4
mov edx, dword [ebp - 0x48]
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 - 0x54], ecx
mov word [ebp - 0x56], si
mov word [ebp - 0x58], bx
jb 0x10240f41
mov ax, word [ebp - 0x56]
mov word [ebp - 0x58], ax
mov ax, word [ebp - 0x58]
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 - 0x54]
mov byte [ebp - 0x59], bl
mov dword [ebp - 0x28], esi
jne 0x10240f72
jmp 0x10240de1
mov eax, dword [ebp - 0x28]
mov ecx, 0x1f0d
mov dword [0x10268b3c], eax
mov dl, byte [ebp - 0x59]
test dl, 1
mov dword [ebp - 0x50], ecx
jne 0x10240f8c
jmp 0x10240f9e
mov dword [0x10268b38], 0x19d9
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
jmp 0x10240fd7
mov eax, dword [ebp - 0x50]
mov dword [0x10268b3c], 0x1a05
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], edx
je 0x10240e83
jmp 0x10240ea4
mov dword [0x10268b3c], 0x2016
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x10240fd7
mov eax, dword [ebp - 0x18]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret