Function at 0x10157d96
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 dword [0x10194f14], 0x122e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0
sete dl
mov esi, dword [ebp - 0x10]
cmp esi, 0
sete dh
and dl, dh
test dl, 1
mov dword [ebp - 0x18], eax
jne 0x10157e8a
jmp 0x10157ebe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x2e], si
mov word [ebp - 0x30], bx
jb 0x10157e1f
mov ax, word [ebp - 0x2e]
mov word [ebp - 0x30], ax
mov ax, word [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
add ecx, 0x264a
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
cmp word [edx + esi*2], ax
sete bl
add esi, 1
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov edi, dword [ebp - 0x34]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, ecx
mov byte [ebp - 0x35], bl
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jne 0x10157de5
jmp 0x10157e95
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x48]
cmp edx, esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
je 0x10157fac
jmp 0x10157f25
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [ebp - 0x35]
test al, 1
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
jne 0x10157ea4
jmp 0x10157e6c
mov eax, dword [ebp - 0x3c]
mov dword [0x10194f14], eax
mov dword [0x10194f18], 0x671
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x18], ecx
jmp 0x10157e8a
mov dword [0x10194f14], 0xc01
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x10194f14], 0x1973
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10194f18], 0x177a
mov ecx, dword [ecx + 0x14]
mov dword [0x10194f14], 0x1eb7
cmp ecx, edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x18], eax
je 0x10157e8a
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x58]
mov byte [ebp - 0x59], cl
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
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 - 0x59]
and bh, bl
test bh, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x54], esi
jne 0x10157f56
jmp 0x10157f7a
mov dword [0x10194f14], 0xdfa
mov dword [0x10194f18], 0xa7
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x10157e8a
mov eax, 0xdfa
xor ecx, ecx
mov edx, dword [ebp - 0x60]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov ebx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], eax
je 0x10157e6c
jmp 0x10157de5
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov dword [0x10194f14], ecx
mov dword [0x10194f18], 0x671
mov dword [ebp - 0x18], eax
jmp 0x10157e8a